VR-25 / migrator

A backup solution and data migration utility for Android
GNU General Public License v3.0
91 stars 6 forks source link

v2021.7.16-beta "rsync -rtl --inplace --no-W" does not actually hard link files #6

Open walwan opened 3 years ago

walwan commented 3 years ago

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.