excluding directories from rsync

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux