Carlos Carvalho (car...@fisica.ufpr.br) wrote on 13 July 2009 20:08: >When --partial-dir is used rsync creates new or updated files inside a >temporary dir. For example the new version of some/path/file is >created in some/path/<partial-dir-name>/file and later moved. > >What happens if a new directory is created? If >some/path/newdir/newfile is to be copied, is it done in >some/path/<partial-dir-name>/newdir/<partial-dir-name>/newfile? Or is >newdir created immediately and the temporary put in >some/path/newdir/<partial-dir-name>/newfile? > >What happens if a directory already exists but its timestamp and/or >permissions changed? I suppose partial-dir isn't used in this case, or >is it?
>From a quick look at generator.c it seems partial-dir applies only to regular files (partialptr = NULL in line 1767), which means that some/path/newdir/newfile is created at some/path/newdir/<partial-dir-name>/newfile. It also appears that delay-updates only happens for regular files, and other types are created immediately, right? -- 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