rsync Optionsparameter "--partial" bewirkt genau was?
-
rsync synchronisiert nur die geänderten Teile der Dateien. Was bewirkt dann der Optionsparameter "--partial"?
-
man rsync
-
zwutz schrieb:
man rsync
Bewirkt es nicht. Es steht in der man zu rsync was über "--partial" drin, dass eben erklärt, dass bei Abbruch weiter macht. Keine konkrete Erklärung! Somit lässt es viel Vermutungen zu, besonders weil ja rsync von sich aus ja sowieso schon, eh nur die geänderten Teile der Dateien synchronisiert und nicht die Dateien ganz neu herunterlädt.
-
Alles schrieb:
Keine konkrete Erklärung!
Soso.
--partial
By default, rsync will delete any partially transferred file if the transfer is interrupted. In some circumstances it is more desirable to keep partially transferred files. Using the --partial option tells rsync to keep the partial file which should make a subsequent transfer of the rest of the file much faster.[...]
--compare-dest=DIR
This option instructs rsync to use DIR as an additional directory to compare destination files against when doing transfers. This is useful for doing transfers to a new destination while leaving existing files intact, and then doing a flash-cutover when all files have been successfully transferred (for example by moving directories around and removing the old directory, although this requires also doing the transfer with -I to avoid skipping files that haven't changed). This option increases the usefulness of --partial because partially transferred files will remain in the new temporary destination until they have a chance to be completed. If DIR is a relative path, it is relative to the destination directory.Ja, wirklich absolut rätselhaft bei so einer spärlichen Erklärung.
Wahrscheinlich wissen die Entwickler selber nicht, was es macht.
-
SeppJ schrieb:
Alles schrieb:
Keine konkrete Erklärung!
Soso.
--partial
By default, rsync will delete any partially transferred file if the transfer is interrupted. In some circumstances it is more desirable to keep partially transferred files. Using the --partial option tells rsync to keep the partial file which should make a subsequent transfer of the rest of the file much faster.[...]
--compare-dest=DIR
This option instructs rsync to use DIR as an additional directory to compare destination files against when doing transfers. This is useful for doing transfers to a new destination while leaving existing files intact, and then doing a flash-cutover when all files have been successfully transferred (for example by moving directories around and removing the old directory, although this requires also doing the transfer with -I to avoid skipping files that haven't changed). This option increases the usefulness of --partial because partially transferred files will remain in the new temporary destination until they have a chance to be completed. If DIR is a relative path, it is relative to the destination directory.Ja, wirklich absolut rätselhaft bei so einer spärlichen Erklärung.
Wahrscheinlich wissen die Entwickler selber nicht, was es macht.
Jetzt wo Du das geschrieben hast, habe ich immerhin diese magere Erklärung ziemlich weit Unten gefunden. Wenn ich das richtig verstanden habe, werden einkommende Synchronisationsfragmente nicht direkt in die Zieldatei geschrieben, sondern gepuffert und erst nach 100% wird es über die Zieldatei gelegt? Mit "--partial" wird nun diese Datei bei einem Abbruch vor 100% einfach wieder verwendet?
-
Alles schrieb:
Jetzt wo Du das geschrieben hast, habe ich immerhin diese magere Erklärung ziemlich weit Unten gefunden. Wenn ich das richtig verstanden habe, werden einkommende Synchronisationsfragmente nicht direkt in die Zieldatei geschrieben, sondern gepuffert und erst nach 100% wird es über die Zieldatei gelegt? Mit "--partial" wird nun diese Datei bei einem Abbruch vor 100% einfach wieder verwendet?
Genau das. Nur findet das "puffern" völlig unabhängig von --partial immer statt, außer du gibst --inplace an.