From jiri.prchal at aksignal.cz Wed Sep 11 11:26:45 2024 From: jiri.prchal at aksignal.cz (=?UTF-8?B?SmnFmcOtIFByY2hhbA==?=) Date: Wed, 11 Sep 2024 13:26:45 +0200 Subject: --delay-updates --temp-dir does it work? Message-ID: <83727403-aca7-4a74-a0f5-d7a3355fc520@aksignal.cz> 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 From kmk at sanitarium.net Wed Sep 11 11:55:47 2024 From: kmk at sanitarium.net (Kevin Korb) Date: Wed, 11 Sep 2024 07:55:47 -0400 Subject: --delay-updates --temp-dir does it work? In-Reply-To: <83727403-aca7-4a74-a0f5-d7a3355fc520@aksignal.cz> References: <83727403-aca7-4a74-a0f5-d7a3355fc520@aksignal.cz> Message-ID: <635fb598-becc-3470-089c-9b649655f068@sanitarium.net> 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 >