[CentOS] rsync exclusions

Tue Oct 6 16:22:29 UTC 2009
ML <mailinglists at MailNewsRSS.com>

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