Questions tagged [exclude]

The tag has no usage guidance.

0
votes
1answer
36 views

Excluding a certain file system from Zabbix regex based disk usage monitoring

I found this answer describing how to exclude a shared memory mount from regex based disk usage monitoring in Zabbix. Is there any way to exclude a certain file system (CIFS in this case)... for ...
1
vote
1answer
596 views

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 ...
2
votes
4answers
1k views

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/...
0
votes
1answer
51 views

Rsync exclude does not work during remote upload

I prepared an rsync code as below: /home/ra/maindir/subdir/ --exclude="/dir/config" --exclude="/dir/include/x.php" --exclude="/maindir/include/x1.php" What I am trying to do is to exclude 'config' ...
1
vote
1answer
347 views

Backup with rsync and exclude

I would like to do a partial backup from a server with rsync. my exclude file looks like this bin/ boot/ dev/ initrd.img initrd.img.old lib/ my problem is now, that every lib, bin and so on folder ...
0
votes
2answers
99 views

Nginx SSL Rewrite Exeption for yust one folder

i force visitors to SSL on two ways in my serverblock if ($http_x_forwarded_proto = "http") { return 301 https://$server_name$request_uri; } and add_header Strict-Transport-...
0
votes
1answer
469 views

Excluding a directory from a root .htaccess rewrite rule to disallow from caching

On my lamp installation, I have in the root folder "/" (mydomain.org) a wordpress multisite with W3 total cache activated, I have also a sub_dir called "sub" (mydomain.org/sub) with a PHP script ...
5
votes
5answers
4k views

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: ...
1
vote
1answer
2k views

Is it possible to exclude files and folder that begin with $ from Windows 2008 R2 DFS replica?

If I replicate by DFSR users redirected folders all folders replicated have their own $RECYCLE.BIN directory and inside that directrory files are renamed as $XXXXX.YYY. I don't want to replicate them, ...
0
votes
1answer
330 views

FreeNAS - how to “Exclude from file” in Rsyncd (GUI)

I am trying to set rsync tasks to Pull user profiles from 11 Windows machines running DeltaCopy Server and then configure ZFS periodic snapshot tasks for a backup solution. So far this has been ...
2
votes
2answers
2k views

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 $...
2
votes
2answers
1k views

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:...
0
votes
3answers
341 views

input wget exclusions from a file?

i'm crawling a forum and I keep stumbling across certain threads that have been going on for ten years. i can certainly exclude these using wget option: -X /t/41866,/t/314849,/t/335041,/t/356321,/...
1
vote
1answer
231 views

How to I get rsync to exlcude a file pattern within an flock?

I have an rsync command that I run hourly via cron, and to prevent it from having multiple simultaneous rsyncs (should the previous hour's rsync still be running when the next hour comes around) I've ...
2
votes
2answers
2k views

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 --...
2
votes
8answers
18k views

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 ....
1
vote
2answers
5k views

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|...
5
votes
1answer
8k views

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 ...
0
votes
1answer
541 views

Robocopy exclude folders/subfolders containing a file named nobackup.txt

We backup a large directory structure but want to exclude some directories. Is it possible to exclude subfolders when the parent folder contains a file named "nobackup.txt"?
0
votes
1answer
251 views

Use tar to exclude one directory (but not another) that matches a pattern

I'm working on doing a pretty straightforward tar for a site, but there's a wrinkle. Here's the file structure of the site: ... files/ images/ images/visitors/ ... logs/ ... visitors/ ...
2
votes
1answer
8k views

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 ...
10
votes
2answers
19k views

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 ...
2
votes
1answer
2k views

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?
0
votes
1answer
2k views

Robocopy - include subdirectories of an excluded directory

I'm using Robocoy to transfer a directory and all it's contents. I use the following command as part of a batch file to copy the directories wile ignoring the images subdirectories. ROBOCOPY C:\...
2
votes
4answers
9k views

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 ...
0
votes
1answer
415 views

TAR and excluding directory files but kee directory

Noob alert: Can I exclude files in the directory "imagecache" but still make the directory a part of the TAR archive?
4
votes
1answer
1k views

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 <Location /> AuthType Basic AuthUserFile xxxxxxxx AuthName "Restricted ...
0
votes
1answer
389 views

How to handle these variables in rsync exclude file?

I have an ignore file for rsync but I can't figure out how to ignore this string of file names and the username: backup/cpbackup/daily/username/homedir/mail/cur/1244452567.H511146P7355.dwhs45.dwhs....
0
votes
1answer
231 views

What directories to/not backup

I'm setting up rsnapshot to backup a production LAMP server. These are the directories that currently are going to be backed up. /home /etc /usr/local /root /var What directories can I exclude from /...
1
vote
2answers
3k views

NetBackup exclude backup selection

I'm trying to exclude some folder from the Backup policy; what I've seen is that you can exclude some by adding a file in /usr/openv/netbackup in the client. Is there any way to excluding in the ...
3
votes
2answers
5k views

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 ...
8
votes
1answer
16k views

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 : !...
0
votes
2answers
6k views

zip to exclude all .svn folders

trying to exclude all .svn folders in the zipped subfolders zip -urq bebe.zip * -x .svn doesn't work...
2
votes
1answer
719 views

How to redirect everything from no-www to www Except for few files, using .htaccess?

How to redirect everything from no-www to www except for few files, using .htaccess? I am using the following .htaccess to redirect no-www to www. .htaccess Options +FollowSymlinks RewriteEngine on ...
1
vote
2answers
808 views

exclude directory with tar command

T would like to use the tar command in Linux to back up some files, but i would like to exclude a specific directory from the archive. How can I do that?