EZ Linux Admin random header image

Rsync

August 18th, 2009 by EZ linux · 1 Comment

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.

Tags: Linux Commands · Linux Software / Scripts

1 response so far ↓

  • 1 Rsync | Linux Certification // Dec 22, 2009 at 6:21 am

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

Leave a Comment