0

In Termux's website's main page, they write (among other stuff):

"use rsync to store backups of your contact list on a remote server"

This makes me wonder:
Android's Contact List is stored in an SQLite DB, which is a file on the phone's internal storage.
rsync synchronizes files.

So If I understand the required implementation behind this idea,
then what they mean by the quoted sentence, is that you can simply synchronize the whole SQLite DB file, to a remote server.

The problem is:
What happens when the day comes, and you need to Restore your Contacts DB?

I assume that Android will not let you copy the SQLite DB file that you saved aside, over the current (new, and empty) Contact List's SQLite DB file,
So how will we do the restoration?

I hope someone understood their idea in this sentence..

  • 1
    It is simple: On file level you need root permissions for creating the backup of the contact SQLite db file and you need root permissions for restoring a backup. – Robert Apr 17 at 13:02
  • Termux provides an API to retrieve contacts list. You don't need to backup/restore the database file. – Irfan Latif Apr 17 at 13:20
  • @Robert Thank you, so without root (on my device, not inside Termux which of course has root) it's completely impossible? – spaceman Apr 17 at 13:25
  • @IrfanLatif The Termux-contact-list command in Termux API enables Reading the Contacts List, but what about Writing it back? – spaceman Apr 17 at 13:26
  • @spaceman I didn't use the API but it must be working on both sides. Just as any contacts backup app works – Irfan Latif Apr 17 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.