Results 1 to 1 of 1
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 ...
- 01-24-2010 #1
I have a rsync question about excluding files
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


Reply With Quote