migrator
migrator copied to clipboard
v2021.7.16-beta "rsync -rtl --inplace --no-W" does not actually hard link files
Description
When I backup up one app with huge data, I found that my device space use will identifiably go up and I verified the data in /data/migrator/local/$pkgname is not hard-linked to the original data.
At lines 342 and 343, there is one commented "cp -dlR" command and one "rsync -rtl --inplace --no-W". After checking rsync document and this page (See here), I think probably the issue comes from this substitution. Although rsync is much faster than cp, its functions are somehow different.
Possible Solution
I am not quite sure whether the answers given in the StackExchange question are useful. Some more experiments might be necessary. I'm in the tg group, so perhaps we can use tg.