Why this doesn't work??

Matt McCutchen hashproduct at verizon.net
Sat Feb 25 14:59:51 GMT 2006


On Fri, 2006-02-24 at 23:52 +0100, Matias Surdi wrote:
> rsync -n -a -v --delete --timeout 120 --exclude '/sys/' --exclude 
> '/tmp/' --exclude '/stuff/' --exclude '/mnt/' --exclude '/proc/' 
> --exclude '/var/tmp/' --exclude '/usr/portage/distfiles/' --exclude 
> '/home/msurdi/.thumbnails/' gaia:/ /usr/backups/gaia.0/
> 
> The excluded dirs are still being included... what's wrong??

If the excluded directories are already present on the destination,
rsync will leave them alone; to have rsync delete them, use
--delete-excluded.  If not, I'm not sure what to recommend; that sort of
command works on my computer.  Keep in mind that rsync will not actually
modify the destination until you take away the -n (--dry-run).
-- 
Matt McCutchen
hashproduct at verizon.net
http://hashproduct.metaesthetics.net/



More information about the rsync mailing list