excluding directories from rsync

Ow Mun Heng Ow.Mun.Heng at wdc.com
Tue Oct 12 08:51:34 UTC 2004


On Tue, 2004-10-12 at 15:58, Marius Andreiana wrote:
> Hi
> 
> I'm trying to rsync entire hdd nightly, 
Good on you. I use Mirrordir for local-local backup and rsync to disk to
network backup

> but want to exclude some
> directories. I saw rsync has  tar-like syntax for excluding and tried
> various combinations, but it still includes them.


rsync -av --progress --delete  --exclude /usr/local/bbuser  /  /mnt/sda/




> 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

-- 
Ow Mun Heng
Fedora GNU/Linux Core 2 on D600 1.4Ghz CPU kernel
2.6.7-2.jul1-interactive 
Neuromancer 16:49:28 up 7:25, 5 users, load average: 1.06, 1.39, 1.71 




More information about the fedora-list mailing list