Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore sqlite3 database as per "backup and recovery" pages doesn't work on a newly installed indi-allsky instance #1748

Open
richiejarvis opened this issue Dec 29, 2024 · 2 comments

Comments

@richiejarvis
Copy link

Hi Aaron,

I am working on restoring the sqlite3 DB, and ran into a problem because the existing database already existed. So I had to remove the existing DB first in order to reload my backup version.

richie@allsky:~ $ rm /var/lib/indi-allsky/indi-allsky.sqlite
richie@allsky:~ $ gunzip -c backup_indi-allsky_sqlite_20241229_141124.sql.gz | sqlite3 /var/lib/indi-allsky/indi-allsky.sqlite

Ah... Just found this page: https://github.com/aaronwmorris/indi-allsky/wiki/Rebuilding-the-database

I could've used that instead to restore my settings I guess?

Anyway, my kludge worked and indi-allsky is running :) It seems to have missed my copied images though. Weird, but only 2 days worth so not a disaster.

Cheers,

Richie

@aaronwmorris
Copy link
Owner

For just restoring your settings, there is an alternative where you can just extract the config JSON from the database and just force import those settings to a different database. The instructions for that are in the wiki page you found.

As for the images, you should be able to just move those. The images are stored with the relative path to the IMAGE_FOLDER from the config.

@richiejarvis
Copy link
Author

richiejarvis commented Jan 2, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants