backup cli #696

Closed
opened 2025-03-05 20:01:05 +00:00 by teidesu · 2 comments
teidesu commented 2025-03-05 20:01:05 +00:00 (Migrated from github.com)

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

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
girlbossceo commented 2025-04-04 15:35:54 +00:00 (Migrated from github.com)

We have a couple ways to run admin commands programmatically that might achieve what you're looking for.

  • Setting the --execute CLI argument / admin_execute config option to run server backup-database which will backup on every server start
  • Setting the admin_signal_execute config option to server backup-database and sending the SIGUSR2 signal to conduwuit externally using kill every time you want to backup. Such as kill -SIGUSR2 $(pidof conduwuit)

Does this work for you?

We have a couple ways to run admin commands programmatically that might achieve what you're looking for. - Setting the `--execute` CLI argument / `admin_execute` config option to run `server backup-database` which will backup on every server start - Setting the `admin_signal_execute` config option to `server backup-database` and sending the `SIGUSR2` signal to conduwuit externally using `kill` every time you want to backup. Such as `kill -SIGUSR2 $(pidof conduwuit)` Does this work for you?
nex added the
Inherited
label 2025-04-14 23:37:32 +00:00
nex closed this issue 2025-04-20 13:46:37 +00:00
Owner

Related: #748

Related: https://forgejo.ellis.link/continuwuation/continuwuity/issues/748
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#696
No description provided.