Date: Sat, 28 Oct 2006 15:49:37 +0930 From: Malcolm Kay <malcolm.kay@internode.on.net> To: freebsd-questions@freebsd.org Cc: Gary Kline <kline@tao.thought.org>, Lars Kristiansen <lars+lister.freebsd@adventuras.no> Subject: Re: rsync does not --exclude: (??) Message-ID: <200610281549.37712.malcolm.kay@internode.on.net> In-Reply-To: <4542BBE7.6050708@adventuras.no> References: <20061027174512.GA88552@thought.org> <4542BBE7.6050708@adventuras.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 28 Oct 2006 11:39 am, Lars Kristiansen wrote: > Gary Kline skrev: > > People, > > > > Weeks ago I tried this *without* the --exclude flags and > > overwrote DOT file that I didn't want to. Iust rechecked > > this use of rsync, saving important files from my work > > server elseswhere, and see that some files or directories > > are being listed and copied over. IDoes anything obvious > > jump out here? > > > > gary > > > > > > > > # > > ## test2ethos.sh > > # > > > > rsync -Cptuvaz -n -e "ssh -i > > /home/kline/.ssh/tao_XXXYYYZZZ-id" \ --exclude > > /home/kline/.zlogin \ > > --exclude /home/kline/.zshrc \ > > --exclude /home/kline/.zhistory.* \ > > --exclude /home/kline/.ctwrm \ > > --exclude /home/kline/.mozilla \ > > --exclude /home/kline/.evolution \ > > --exclude /home/kline/4zip/ \ > > --exclude '/home/kline/www/' \ > > /home/kline kline@ethos:/home/kline > > Hope this might help. > From man rsync: > "global include/exclude patterns are anchored at the "root of > the transfer" in man rsync look for: "INCLUDE/EXCLUDE PATTERN > RULES" and "ANCHORING INCLUDE/EXCLUDE PATTERNS" > Yes, it looks as though the anchoring of exclude arguments is more complex (or at least different) than I imagined. Never-the-less ambiguous arguments will still need to be quoted. Malcolm > Regards, Lars > > > if [ $? = 0 ] > > then > > echo "rsync transfer went okay: tao to ethos" > > else > > echo "rsync failed to ethos from /home/kline"|mail > > kline@thought.org fi > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610281549.37712.malcolm.kay>