[CentOS] rsync exclusions

ML mailinglists at MailNewsRSS.com
Tue Oct 6 17:22:29 UTC 2009


Hi All,

I am using rsync  and I see --exclude as an option.

But it says --exclude pattern?

So how can I do an rsync on '/' except exclude /home/nackup?

I am doing:

rsync -avx / /mnt/sdb2/

can I simply do:

rsync -avx --exclude=/home/backup / /mnt/sdb2/

-ML


More information about the CentOS mailing list