I am trying to set up android's "/sdcard" (which is not really an sd card) synchronization as described in https://git-annex.branchable.com/tips/android_sync_with_adb/
The problem is that my "sdcard" is quite sizeable, 128Gb, and I don't seem to manage to get all the contents adb-pulled overnight, and I can't leave the phone copying for more than ~10 hours.
When I am trying to resume the synchronization with git annex import --verbose master --from android_cable
, it does immediately produces a git
process with a 99% I/O consumption, but displays no information, so I don't know what is it that it's actually doing.
Is it possible to increase the verbosity of --verbose?
--verbose --debug
.--debug does add a bit of information, but still not much.
stays in this state "forever".
Is it possible to find out how much of the "update-index" has passed?
git-annex seems to be the only bi-directional synchronization tool in the field. I mean, there is also
adb-sync
, but it, as all other tools, doesn't handle deletions properly.What git-annex is working on doing here is adding all the data it had started recording when you interrupted it before to the git-annex branch.
If it had imported a large number of files, that could take a while. The number of files in .git/annex/journal/ is a good indication of how much work it needs to do (but all the files will remain there until it's finished).
Normally with a fairly large number of files like a thousand or so, this step takes less than 1 second..
--verbose is the default verbosity level BTW.
Well, I wouldn't need any specialised synchronisation tool if I had 1000 files.
My "sdcard", which is not really an SD card (Android lying as always), has ~400 000 files, out of which a huge load are garbage files created by poorly written apps which you cannot avoid, like a bank-client, which are unmanageable from a phone itself.
I hoped to pull them to the laptop, do the heavy lifting of sorting that out on the laptop, using fdupes, rdfind, find/grep, and such, delete the rubbish, and push it back.
It's not an "exotic" setup at all, I don't even have my phone rooted. In fact for about a year or two a phone with 128Gb of storage is fairly affordable. And it's not really possible to stop apps from being garbage.