回覆: How to sync an exact list of files, Including deletes!?
(New Plaza F9) Lee, Sam
samlee at newplaza.com.hk
Tue Nov 23 17:42:16 MST 2010
2010/11/23 23:36:52 [444] rsync: connection unexpectedly closed (255 bytes received so far) [generator]
2010/11/23 23:36:52 [444] rsync error: error in rsync protocol data stream (code 12) at io.c(641) [generator=3.0.4]
Hello£¬My Friends,what's mean that? Thanks!
-----Ôʼà]¼þ-----
¼Ä¼þÕß: rsync-bounces at lists.samba.org [mailto:rsync-bounces at lists.samba.org] ´úÀí Matt McCutchen
¼Ä¼þÈÕÆÚ: 2010Äê11ÔÂ24ÈÕ 7:30
ÊÕ¼þÕß: Axel Kittenberger
¸±±¾: rsync at lists.samba.org
Ö÷Ö¼: Re: How to sync an exact list of files, Including deletes!?
On Tue, 2010-11-23 at 23:35 +0100, Axel Kittenberger wrote:
> > You want the --delete-missing-args option of the current development
> > rsync.
>
> Yes, I suppose I want that! :-) I hope this works with --force as well
> if there is a dir in --files-from?
Yes.
> I got another question tough running extensive tests, the daemon
> happens to do this once in a while if creates/deletes/moves piling up
> faster than inotify tracks, it calls rsync for a source->destination
> pair, where the source dir no longer exists, normally would be no
> problem:
>
> $ /usr/bin/rsync -vP -d /tmp/ltest.WQS/src//n/c/d/ /tmp/ltest.WQS/trg//n/c/d/
> building file list ...
> rsync: change_dir "/tmp/ltest.WQS/src//n/c/d" failed: No such file or
> directory (2)
> 0 files to consider
> created directory /tmp/ltest.WQS/trg//n/c/d
>
> I expect rsync to just fail in that case, but it creates the target
> directory nevertheless :-( Is there some parameter I can add to rsync
> so it wont create directories on the target, if there isnt a source
> directory for it?
Rsync always creates the destination directory; there is no way to stop
that. I would suggest using /tmp/ltest.WOS/trg/ as the destination
directory in combination with --relative.
--
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
More information about the rsync
mailing list