I have a rsync question about excluding files

dwhs charles at dwhs.net
Sun Jan 24 16:09:11 MST 2010


I am running rsync for back ups on a server but some files I do not want
backed up.

The files very in name so I need to do a * option to handle the variables.

Here is a example of the files I want to not transfer.

username/homedir/mail/new/1256216636.H494497P14252.dwhs250.dwhs.net,S=4830
username/homedir/mail/new/1256216988.H787800P16131.dwhs250.dwhs.net,S=3177
username/homedir/mail/new/1256217099.H219581P16933.dwhs250.dwhs.net,S=970

I have this code in a exclude file now but the files still get through:

*.*.dwhs250.dwhs.net
*.*.dwhs250.dwhs.net:2,
*.*.dwhs250.dwhs.net,*
*.*.dwhs250.dwhs.net,*,*
*.msg"
core.*
*.*.mbox:2,

then I have this rsync code running:

rsync --delete -vae ssh 12.123.123.123:/backup/cpbackup/daily
/home2/dwhs250/ --exclude '/root/exclude.txt'

Thanks!

Charley

-----
Chaze
http://www.charlesyarbrough.com My Blog  | DWHS  http://www.dwhs.net Web
Hosting 
-- 
View this message in context: http://old.nabble.com/I-have-a-rsync-question-about-excluding-files-tp27300204p27300204.html
Sent from the Samba - rsync mailing list archive at Nabble.com.



More information about the rsync mailing list