Questions tagged [exclude]

38 questions
17
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
  • 321
  • 1
  • 4
  • 6
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
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…
JackalopeZero
  • 201
  • 2
  • 8
5
votes
4 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
  • 51
  • 1
  • 3
5
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,562
  • 5
  • 20
  • 36
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 ->…
sweb
  • 451
  • 1
  • 9
  • 27
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…
Jarrod White
  • 51
  • 1
  • 2
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…
Saifis
  • 199
  • 2
  • 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…
Andrew Ferrier
  • 864
  • 9
  • 21
2
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
  • 165
  • 8
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
  • 429
  • 6
  • 11
  • 23
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
  • 630
  • 2
  • 8
  • 15
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,791
  • 13
  • 45
  • 73
2
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
  • 43
  • 5
2
votes
4 answers

Tar directory contents without parent and exclude subdirectories/files

Simplified directory structure: /root/test /root/test/dir1 /root/test/dir2 /root/test/dir3 /root/test/dir4 I want to tar /root/test so that when I extract the archive I get dir1 and dir2. I want to exclude dir3 and dir4 and possibly other files and…
Joe
  • 344
  • 7
  • 23
1
2 3