rsync --delete --stats -vae ssh /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:



This is for a cpanel based server.

One thought on “Rsync”

Comments are closed.