Questions tagged [exclude]

41 questions
20
votes
3 answers

How to exclude certain directories while using wget?

I'd like to download a directory from a FTP, which contains some source codes. Initially, I did this: wget -r ftp://path/to/src Unfortunately, the directory itself is a result of a SVN checkout, so there are lots of .svn directories, and crawling…
anta40
  • 351
9
votes
1 answer

Apache ProxyPass or ProxyPassMatch to exclude a file from proxying

I have a VirtualHost set to proxy all requests to another server running on port 9000. What I have : ProxyPass / http://localhost:9000/ ProxyPassReverse / http://localhost:9000/ What I've tried : ! ProxyPass /test.html…
Andrei
  • 463
  • 2
  • 5
  • 12
7
votes
5 answers

How to exclude a service under /etc/logrotate.d/ to run with the main logrotate job

I have a file under logrotate.d that I would like not to run when the main logrotate is running. I have created a separate job for this in /etc/crontab 45 23 * * * root mv /var/log/RemoteSystems/*/*.log /var/log/Archiv/ && logrotate…
Ioan
  • 71
7
votes
2 answers

Is it necessary to include the /run directory in backups?

I use a variant of the simple script below from the Community Ubuntu Documentation described tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev / I…
vfclists
  • 1,702
6
votes
5 answers

tail all log files in a directory | exclude zipped files

Im trying to find the right command to tail a bunch of log files whilst excluding the zipped files in a set directory. The log files are being zipped as they become oversized. At the moment Im using: tail -f /var/logs/myLog* Which works fine, but…
5
votes
1 answer

inotifywait usage and exclude

I want to monitor special path to any event of create or modified files recursively in it via inotifywait but I don't know what's my problem is. I have some folders that I want to exclude. watchpath -> folder1 -> file1 ->…
5
votes
2 answers

How to symlink folders and exclude certain files

I'm not a server guru (unfortunately) but have a decent knowledge of linux & bsd. I'm trying to symlink multiple instances of HLDS (game server) but need to exclude certain folders & config files to achieve this properly. I need to do it this way as…
4
votes
1 answer

Excluding the nagios directory from Basic Auth that is set for the root directory

I have basic auth from the root directory for Apache. I am setting it like so. /etc/httpd/conf.d/xxxx.conf AuthType Basic AuthUserFile xxxxxxxx AuthName "Restricted Area" Require valid-user Since this…
3
votes
2 answers

rsync --exclude not excluding

I'm using rsync on an Ubuntu 12.04 LTS server with the following script to back up all of /, however, whenever I run the script (as root), the directory /backup is included, when it should be excluded: #!/bin/sh rsync…
Xenon
  • 185
3
votes
1 answer

How can I exclude PATTERN from inotify/incron

I'm using incron to watch for events in a directory but I want to exclude some subdirectory or some filename PATTERNS. Is there a way I can do this elegantly?
clneagu
  • 53
  • 1
  • 5
2
votes
1 answer

DNSMasq - Exclude some subdomains

We've got several machines set up with DNSMasq to run local development environments forwarding all .dev requests to 127.0.0.1 However we need to add some exclusions to this list, wondering how we'd go about it. All these exclusions are still…
owenmelbz
  • 173
  • 3
  • 13
2
votes
2 answers

How do I write an rsync exclude for a directory tree with names containing spaces?

I'm trying to exclude a directory tree as part of an rsync command embedded in a bash script approximately like this: $OPTIONS="-rl --exclude 'Some Parent Directory/Another Directory'" rsync $OPTIONS $SOURCEDIR a@b.com:/SomeTargetDir My aim is to…
2
votes
8 answers

Excluding a directory from a root .htaccess rewrite rule to allow it to be password protected?

I have spent a tremendous amount of time the last week trying to figure this out, but no matter what I try I cannot get this to work. My web host said they did not have anyone who knew enough about .htaccess files to get this working (encouraging,…
Nate
  • 479
  • 6
  • 11
  • 24
2
votes
3 answers

Nginx static files exclude one or some file extensions

I'm serving up a static site via nginx. location ~* \.(avi|bin|bmp|dmg|doc|docx|dpkg|exe|flv|gif|htm|html|ico|ics|img|jpeg|jpg|m2a|m2v|mov|mp3|mp4|mpeg|mpg|msi|pdf|pkg|png|ppt|pptx|ps|rar|rss|rtf|swf|tif|tiff|txt|wmv|xhtml|xls|xml|zip)$ { …
Evgenii Iablokov
  • 730
  • 3
  • 9
  • 16
2
votes
1 answer

How to exclude a user from an applied password policy

I have received a requirement that a single user needs to be excluded from the company's password policy (the CEO if you ask). as such, I have tried the following with no success. I have copied the default domain password settings to a new…
Saariko
  • 1,811
1
2 3