Note that I don't have much experience with these options.
My understanding is that --temp-dir doesn't make a tree because it is
only designed to hold individual files until rsync is done making them
then they aren't temporary anymore and are moved.. --delay-updates on
the other hand keeps files out of place until all of the files are done
then it expects to be able to move them all into place all at once
meaning that they need to be on the same filesystem.
You might want to look at the atomic-rsync script in rsync's contrib
dir. It still needs there to be space on the filesystem to hold the
files that are different but depending on the change it will use hard
links to handle the unchanged files so that the new and old trees can
simply be swapped at the end.
On 9/11/24 07:26, Jiří Prchal via rsync wrote:
Hi all,
I can't get this work as man page mention:
"
--delay-updates put all updated files into place at end
--temp-dir=DIR, -T create temporary files in directory DIR
"
I'm doing whole root update over slow and unstable connection and I
understood that those options should solve my problem of corrupted fs on
partial update.
I thought this will transmit all changed files at first and then move
them over old ones.
Sice the free space on receiver partition is limited, I need to use
other partition/device there, therefore DIR is absolute path. But while
transmitting, only one file at time appears in temp dir. And in one
place, no complete dir hierarchy.
I tried -partial-dir also, but it fails too because there are more files
with the same name, so this works as man page describes.
Am I missing something? Any help, please?
Thanks
Jiri
--
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