Am Sun, Apr 03, 2022 at 05:05:07PM +0100 schrieb Wol: > > > > Rsync has a bwlimit argument which helps here. Note that rsync copies > > > > the whole file on what it considers local storage (which can be mounted > > > > network shares) ... this can cause a real slowdown. > > > It won't help on the initial copy, but look at the - I think it is - > > > --in-place option. > > > This one is mostly useful if space on the destination is tight or the data > > link (for FS commands) is slooow, because normally rsync creates a new temp > > file and moves it into place once the transfer is complete.
> And making a temporary file may be exactly what you DON'T want. I make heavy > use of hard links, … which the -H option is for. > and "make a temp file" absolutely buggers file system integrity ... Can you elaborate? A temp file is just like any other file. If you do in-place syncing, then it “buggers up” the original file instead of a temp. > And my use case with LVM and backups, "make a temp file" does both > absolutely nothing to protect file system integrity I was not actually talking about file *system* integrity, but that if you overwrite in-place and the connection is lost during transfer, you are left with an incomplete file. Hence you just lost data on the destination. The FS itself is not adversely affected by that, only the file. > and makes every backup waste far more space than is necessary ... How so? If it’s a COW filesystem, I can understand it (insofar as if you do in-place, then the existing file is deleted first, which gives the FS more space for the new copy). > So --in-place actually has a lot of uses outside your two examples. I have > oodles of space, and both my source and target are on fast sata links in the > same computer, but not using --in-place would be *very* costly for me. Well I admit I don’t know much outside of my realm of local disks with ext4, zfs and ssh. While I do run LVM on my laptop, it’s just so that I can have “partitions” on an otherwise fully encrypted block device. I never used any of its more fancy features. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. Grammar: the difference between knowing your shit and knowing you’re shit.
signature.asc
Description: PGP signature