Restore data from baikal after system was broken Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
Bademeister
Posts: 5
Joined: Tue Oct 26, 2021 3:30 pm

Restore data from baikal after system was broken

Post by Bademeister »

Hello,

after an upgrade to buster I broke my system (see viewtopic.php?t=9590). Now I did a clean installation and everything works fine again except for baikal: I am not able to restore the data (which is a huge problem for me as a lot of data on my mobile phone is lost).
The good thing is I have a backup of the old dietpi-installation. My idea was to install baikal and afterwards copy the "baikal" folder from the backup to the new system (/mnt/dietpi_userdata/mysql). But this seems to be a stupid idea as it does not work.

Any idea?
Thanks!
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Restore data from baikal after system was broken

Post by Joulinar »

The backup you have done, was this on Buster or on a different version?
You know use Buster or Bullseye?

There are a couple of post at the baikal GitHub about how to restore. It looks like you need something more than just the database files. I guess you would need as well config files

https://github.com/sabre-io/Baikal/issues/739
https://github.com/sabre-io/Baikal/issues/342

probably you would need to copy whole folder for database and baikal. Because configuration contains some encryption password as well.

Code: Select all

/var/www/baikal/
/mnt/dietpi_userdata/mysql/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Bademeister
Posts: 5
Joined: Tue Oct 26, 2021 3:30 pm

Re: Restore data from baikal after system was broken

Post by Bademeister »

Ok, I am having progress. I did the following steps:

1. Delete /mnt/dietpi-userdata/mysql and copy the old mysql folder from the backup to /mnt/dietpi-userdata
2. Delete /var/www/baikal and copy the old baikal folder from the backup to /var/www
3. dietpi-software reinstall 57 82 84 88 89 (otherwise I get a failure when connecting the baikal page)
4. Accessing http://<your.IP>/baikal/html to access the setup page.

This works and finally I am able to sync my caldav and carddav data again.
Thanks for the help!
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Restore data from baikal after system was broken

Post by Joulinar »

ok perfect that this has been working. :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply