-
Notifications
You must be signed in to change notification settings - Fork 13
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
Move database backup-related code somewhere else than createTables.js #107
Comments
@DavidBruant Does this issue refer to the current version of 6element or previous Pheromon which has been moved ? |
Current 6element/server/database/management/createTables.js Lines 14 to 32 in 39077ed
|
Fine. We need to adapt it to 6element. Previously, dump process wasn't much necessary because open data files were used to reload the db. But it's not enough anymore, bin data from sensors will involve to save dumps with cron jobs. |
Working on it. |
Requirements:
|
Keep the backup concerns outside of the application docker containers. The host machine can access the docker containers via This service can have a directory (read-only) volume for backups when need to restore. When one wants to restore a backup, it'd do:
|
Same as anthill/pheromon#32 (comment)
createTables should only create tables. Other things should be done elsewhere, a new tool can glue these functions together elsewhere too.
For reference, this was introduced in https://github.com/anthill/6element/pull/79/files#diff-f9300e43444141fb3325dec3e7101de0R14
Sorry for not catching that earlier.
The text was updated successfully, but these errors were encountered: