Rsync

“rsync –delete –stats -vae ssh 12.123.123.123:/backup/cpbackup/daily/ /backup/cpbackup/daily/ –exclude-from ‘/root/exclude.txt’
I added the file exclude.txt because with this code you can have certain files not be transferred. In this case I added pending and spam emails.

So my exclude.txt file has this in it:
*.*.dwhs1234.dwhs.net

*.*.dwhs1234.dwhs.net:2,

*.*.dwhs1234.dwhs.net:2,*

*.msg”
core.*
*.*.mbox:2,
This is for a cpanel based server.”ezlinuxadmin.com

Share
This entry was posted in About LPI. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>