backup cli #696
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/MSC
Matrix/Media
Meta
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: continuwuation/continuwuity#696
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
currently the only way to make a backup is to send a message in the management channel, which is not really practical for automatic backups.
there should really be a way to trigger a backup from some kind of cli, or maybe an http api call
We have a couple ways to run admin commands programmatically that might achieve what you're looking for.
--execute
CLI argument /admin_execute
config option to runserver backup-database
which will backup on every server startadmin_signal_execute
config option toserver backup-database
and sending theSIGUSR2
signal to conduwuit externally usingkill
every time you want to backup. Such askill -SIGUSR2 $(pidof conduwuit)
Does this work for you?
Related: #748