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?
Carlos Carvalho (carlos at 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?
Seemingly Similar Threads
- PATCH: cosmetic fix to output with --existing -vv
- exit status 13 in version 3.1
- protocol errors when using --dryrun
- [Bug 10724] New: rsync 3.1.1 incorrectly creates extra dirs inside --backup-dir on Mac OSX
- Automatic sysvol replication through detection of filesystem events