Questions tagged [exclude]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
110 views

DNS: Exclude subdomain from wildcard record

I would like to match all subdomains to return an A record (this works) but I would like to exclude one particular subdomain from resolving (not sending an A record at all). *.example.com. IN ...
Teddy's user avatar
  • 195
-1 votes
1 answer
81 views

What would be the easiest way to exclude 206 requests from apache xampp log ? Thanks

What would be the easiest way to exclude 206 requests from apache xampp log ? Thanks
SpEcTrE73's user avatar
1 vote
0 answers
214 views

Rsync: Exclude files by maximum filename length (< 143 characters)

A cronjob copies files from a remote server (probably ext4) via rsync to a local encrypted partition (probably eCryptFS on top of ext4). Now rsync throws errors for filenames that are longer than 143, ...
Thomas Ebert's user avatar
0 votes
2 answers
431 views

I want to exclude specific words from the results when piping tail into grep

I am using "tail -f /var/log/fail2ban.log -f /var/log/ufw.log | grep -e Ban -e BLOCK -e ALLOW" (without the quotes) and it is working but I want to exclude the results that have the words ...
Greg Azar's user avatar
0 votes
0 answers
194 views

Apache 2.4 SSLClientVerify on top of Vhost, but exclude one URL

I have the following configuration: <VirtualHost *:443> SSLVerifyClient require SSLVerifyDepth 4 <Location /> ####SSLVerifyClient require ####SSLVerifyDepth 4 ...
Fozix's user avatar
  • 1
0 votes
1 answer
2k 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 ...
haba713's user avatar
  • 117
2 votes
1 answer
3k 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 ...
owenmelbz's user avatar
  • 173
7 votes
5 answers
5k 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/...
Ioan's user avatar
  • 71
0 votes
1 answer
76 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' ...
Onur Göker's user avatar
1 vote
1 answer
422 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 ...
Garog's user avatar
  • 9
0 votes
2 answers
130 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-...
Deex's user avatar
  • 131
0 votes
1 answer
769 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 ...
dr house's user avatar
6 votes
5 answers
8k 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: ...
JackalopeZero's user avatar
1 vote
1 answer
3k 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, ...
user avatar
0 votes
1 answer
589 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 ...
user179181's user avatar
2 votes
2 answers
4k 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 $...
Andrew Ferrier's user avatar
3 votes
2 answers
2k 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:...
Xenon's user avatar
  • 185
0 votes
3 answers
571 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,/...
mcwizard's user avatar
  • 103
1 vote
1 answer
415 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 ...
Trevor Horsfall's user avatar
6 votes
2 answers
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 --...
vfclists's user avatar
  • 1,632
2 votes
8 answers
23k 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 ....
Nate's user avatar
  • 449
2 votes
3 answers
10k 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|...
Evgenii Iablokov's user avatar
5 votes
1 answer
11k 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 ...
Mohammad Hossein Fattahizadeh's user avatar
0 votes
1 answer
759 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"?
andre's user avatar
  • 1
0 votes
1 answer
532 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/ ...
Justin Russell's user avatar
2 votes
1 answer
11k 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 ...
Saariko's user avatar
  • 1,791
17 votes
3 answers
39k 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 ...
anta40's user avatar
  • 321
2 votes
1 answer
3k 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?
clneagu's user avatar
  • 43
0 votes
1 answer
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:\...
fearoffours's user avatar
2 votes
4 answers
10k 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 ...
Joe's user avatar
  • 344
0 votes
1 answer
576 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?
Cudos's user avatar
  • 539
4 votes
1 answer
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 ...
Saifis's user avatar
  • 209
1 vote
1 answer
464 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....
user avatar
0 votes
1 answer
276 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 /...
Markus Hedlund's user avatar
1 vote
2 answers
4k 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 ...
anders's user avatar
  • 235
5 votes
2 answers
8k 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 ...
Jarrod White's user avatar
9 votes
1 answer
19k 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 : !...
Andrei's user avatar
  • 463
0 votes
2 answers
7k 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...
Michael's user avatar
  • 397
2 votes
1 answer
746 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 ...
X10's user avatar
  • 205
1 vote
2 answers
1k 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?
haim evgi's user avatar
  • 753