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

Implement a /backup command #19

Open
zeel01 opened this issue Jul 24, 2024 · 0 comments
Open

Implement a /backup command #19

zeel01 opened this issue Jul 24, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@zeel01
Copy link
Collaborator

zeel01 commented Jul 24, 2024

Leo currently does database backups on start, but can't do one while running. This is due to the way the database driver is handled between using the sequelize ORM (which, at least last I checked, can't run a direct backup procedure) vs. better-sqlite3 which can.

In order to perform a backup while running, other subsystems that touch the database would need to be suspended, the sequelize DB connection will need to be ended, the backup performed using better-sqlite3, then the original connection restored and other systems re-enabled.

Or... something totally different that I didn't think of or using new features of things I haven't looked at in years.

Also, obviously this needs appropriate permissions handling.

@zeel01 zeel01 added enhancement New feature or request help wanted Extra attention is needed labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant