4 ms·
I do backup my android phone using borg installed via termux.
by rubenbe 5y ago
I do backup my android phone using borg installed via termux.
- lucb1e 5y agoHoly crap that's just `pkg install borgbackup`. I had no idea (my phone is already rooted anyhow, so this will also be able to get data folders). This changes everything. There is also `pkg install restic` btw. Based on the problems with append-only in borg and the lack of those in restic's implementation (I did a short audit on that part of the `restic/rest-server` code, looks solid but don't take my word for it), I might go with the latter but this is a great tip regardless.
- rubenbe 5y agoThe reason I chose borg over restic is there are at least two commercial providers (useful for an offsite backup). borgbase.com and rsync.net too iirc
- anotherevan 5y agoThat's an interesting solution. Do you have any more details or a blog post to share?
- rubenbe 5y agoI never wrote a blog post about it, but it is triggered when I plug in my charger and the phone is on Wifi. There are hooks in termux to do so. Thanks for the suggestion to write a blog post about it ;)
- anotherevan 5y agoQuid pro quo: I've been using Titanium Backup[1] to make backups of all my apps, however it does not working properly with Android 11 and seems to perhaps be abandoned. So I'm now also using OAndBackupX[2] as well, which seems to be doing the job. I then use FolderSync[3] to SFTP synchronise those two backup folders across to my server regularly when the phone is on the home wifi. (I also two-way sync my photos folder which is really quite handy.) I use to also occasionally do a full sync of my phone contents to my server using FTP[4] although since upgrading, Android 11 has clobbered access to the Android/data folder making that problematic. Using Termux + Borg (or Restic) so push full full backups looks attractive. Never seen Termus before. Thanks. [1] https://play.google.com/store/apps/details?id=com.keramidas.TitaniumBackup https://play.google.com/store/apps/details?id=com.keramidas.... [2] https://github.com/machiav3lli/oandbackupx https://github.com/machiav3lli/oandbackupx [3] https://play.google.com/store/apps/details?id=dk.tacit.android.foldersync.lite https://play.google.com/store/apps/details?id=dk.tacit.andro... [4] https://play.google.com/store/apps/details?id=com.theolivetree.ftpserver https://play.google.com/store/apps/details?id=com.theolivetr...
- andrepd 5y agoMan, don't tell me Titanium Backup is abandoned... I've been using it for almost 10 years now!
- anotherevan 5y agoAlso a long time user. I'm only speculating on abandonment because: it hasn't had an update since Nov 2019; I believe the fix for Android 11 would be a fairly simple permissions change, and; from the comments, no one has had a response from the author on the issue. It is a shame, it has been a mainstay for me, restoring apps and data across at least three phones now. I'm hoping OAndBackupX works out, but have not really battle-tested it yet.