I am using neo backup often i run into storage issues so i am wondering if there is a possibility of backing data with git, root, Termux, Tasker .
Edit: solved some issues
- storage issue was fixed by not enabling unnecessary backup options. It created massive difference for most applications, eg anki was over 1 GB, now its 9 KB.
- Some application’s backups were not working( After restoring applications were crashing), for them, rather than backing up whole data, we can copy relevant data. Eg for element, we can backup by
cp /data/data/im.vector.app/shared_prefs/im.vector.app_preferences.xml %ConfigBackupLocation/element
# you need root for this
Git is bad at tracking binary files. So it’s not a good solution for backups. You could use something like restic, Borg or Kopia from termux
Here’s a good guide on how to do it with Borg that could easily be adopted to the other tools https://neverpanic.de/blog/2022/01/25/backing-up-your-android-phone-with-borgbackup/