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