On Wed, 2010-03-24 at 12:10 +0530, Satish Shukla wrote: > Please advise on rsync usage. --delete doesn’t work without > recursion(--recursion). The recursion is causing huge overheads for > me. My directory trees are huge. Any suggestions through which I can > cut overheads. It used to work well in rsync-v2.5.5 > > /opt/rsync-v2.5.5/bin/rsync --delete --checksum -lptgoD > --rsync-path=/opt/rsync-v2.5.5/bin/rsync --hard-links > --timeout=5184000 --exclude=.snapshot --stats u...@host::abc/xyz/* > /aaa/bb/cc (Works Well for this version) > > /opt/rsync-v3.0.7/bin/rsync --delete --checksum -lptgoD > --rsync-path=/opt/SFI/rsync-v3.0.7/bin/rsync --hard-links > --timeout=5184000 --exclude=.snapshot --stats > u...@host::abc/xyz/* /aaa/bb/cc (doesn’t work without –r)
You need to remove the * from the end of the source path for --delete to work. You can use -d (--dirs) instead of -r if you don't want rsync to look beyond the immediate children of u...@host::abc/xyz/ . -- Matt -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html