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

Describe correct procedure for backups and test it #20

Closed
giovannipizzi opened this issue Apr 13, 2020 · 4 comments
Closed

Describe correct procedure for backups and test it #20

giovannipizzi opened this issue Apr 13, 2020 · 4 comments
Assignees

Comments

@giovannipizzi
Copy link
Member

In particular, if rsync is used during packing, check if there is the risk of having corrupted data (e.g. if the pack files are transferred before the index and this then refers to missing data, if the loose files are not transferred but the packs have been already transferred, etc.)

@giovannipizzi
Copy link
Member Author

giovannipizzi commented Apr 24, 2020

This is very important - note that there is an official procedure also to backup SQLite files (see here), probably one cannot just run rsync on them.

Note that the standard python3 sqlite library has a method to perform backups: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.backup

@giovannipizzi
Copy link
Member Author

@eimrek is working on the docs for AiiDA backups. Good to back port something in this repo, or at least refer to those (AiiDA) docs from the disk-objectstore docs.

@eimrek
Copy link
Member

eimrek commented Sep 21, 2023

Thanks. Possibly makes sense to move the dos backup function to this repo https://github.com/aiidateam/aiida-core/blob/backup-script/aiida/storage/psql_dos/backend.py#L429

@eimrek
Copy link
Member

eimrek commented Jan 12, 2024

done in #161

@eimrek eimrek closed this as completed Jan 12, 2024
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