Date: Tue, 25 Mar 2003 12:51:38 -0500 From: Louis LeBlanc <leblanc+freebsd@keyslapper.org> To: freebsd-questions@FreeBSD.ORG Subject: Re: [OT] file synchronization between two machines Message-ID: <20030325175138.GC2618@keyslapper.org> In-Reply-To: <006601c2f2f3$32cdfb90$1916c60a@win2k.clickcom.com> References: <20030325170212.GC48060@dan.emsphone.com> <006601c2f2f3$32cdfb90$1916c60a@win2k.clickcom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/25/03 12:23 PM, John Straiton sat at the `puter and typed: > > The only drawback is rsync will never delete files; you have to > > manually remove them from both machines manually. > > It wouldn't be near as neat a utility if that were true (unless I > misunderstood your statement). > > From the man page for rsync: > > --delete delete files that don't exist on > the sending side > --delete-excluded also delete excluded files on the > receiving side > --delete-after delete after transferring, not > before > --ignore-errors delete even if there are IO > errors Cool. It also occurred to me that a flag that tells rsync not to copy files if they aren't already at the destination would be useful. --existing will do it. Looking thru the manpage, I see that the -C flag is a cvs style exclusion. Is there any reason for using an explicit exclusion in one command and a CVS style exclusion in the other? rsync -avuzb --exclude '*~' samba:samba/ . rsync -Cavuzb . samba:samba/ Other than this, I think you've all helped me solve this problem. Thank you! Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Technological progress has merely provided us with more efficient means for going backwards. -- Aldous Huxley To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030325175138.GC2618>