adbenitez / deltachat-cursed

[WIP] Cursed Delta, a lightweight Delta Chat client for the command line
GNU General Public License v3.0
41 stars 2 forks source link

allow to import/export delta chat backups #13

Closed dotlambda closed 2 years ago

dotlambda commented 3 years ago

The Delta Chat Android and iOS apps allow the creation of backups. It should be possible to import these.

adbenitez commented 3 years ago

yes that planned, in the meantime I guess you can just extract the .tar backup and place the content in ~/.curseddelta/account/ or use the --db command line argument

LeMeteore commented 2 years ago

If you already have a plan of how it should be done, I would like to help on you on this task.

adbenitez commented 2 years ago

@LeMeteore hi, sorry, missed your comment, importing is actually easy:

account.import_all(path_to_tar_backup)

then the data is imported in current db/account (the database provided with --db should NOT be configured to be able to import backup)