simplebot-org / simplebot

Extensible Delta Chat bot written in Python3
Mozilla Public License 2.0
34 stars 9 forks source link

After upgrade old data wiped #74

Closed genya1 closed 3 years ago

genya1 commented 3 years ago

I had Simplebot running on a host and uninstalled it, then pulled in the new changes and installed Simplebot again. This created a new key-pair, wiped all previous email configurations, and wiped all old Sqlite plugins databases.

Steps I did:

  1. pip3 uninstall simplebot
  2. git pull
  3. pip3 setup.py install

I was able to re-store the original key-pair from ~/.config/simplebot/account.db in keypairs table, I understand this bot is still not in release, but just wanted to start the conversation if it is possible to utilize the old configurations rather than creating new ones since all the messages would be encrypted after upgrade.

adbenitez commented 3 years ago

hi @genya1, old data was not wiped, it was you was using an old version of simplebot which used ~/.config/simplebot/ as default folder for the bot account, now the bot has a accounts folder, you just have to move all data in that old ~/.config/simplebot/ folder to ~/.config/simplebot/accounts/bot%40example.com or manually passing:

simplebot -a ~/.config/simplebot/ serve