excluding directories from rsync

Marius Andreiana mandreiana at rdslink.ro
Tue Oct 12 07:58:59 UTC 2004


Hi

I'm trying to rsync entire hdd nightly, but want to exclude some
directories. I saw rsync has  tar-like syntax for excluding and tried
various combinations, but it still includes them.

For example:

rsync -acSx --delete --exclude 'bbc1.9e-btf/' --exclude
'/tmp/' /mnt/sda/ /mnt/hdc
send_files failed to open /mnt/sda/usr/local/bbuser/bbc1.9e-
btf/tmp/combo.21192: No such file or directory

Also tried --exlude 'bbuser/*/tmp/'.

How could I exclude all /usr/local/bbuser ?

Thanks,
-- 
Marius Andreiana
Galuna - Solutii Linux in Romania
http://www.galuna.ro




More information about the fedora-list mailing list