diff --git a/docs/deployment.md b/docs/deployment.md index 0b96f82..56cabdd 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -405,6 +405,21 @@ Archives are stored under `/var/lib/coulobre/account-backups/` with root-only access. Retrieve archives and manage their retention on the server. Recovery uses the existing [account bundle commands](development.md#recover-backups-from-the-bundle). +#### Schedule backups for an account + +Select **Schedule backups** on the account page. Choose a daily time or a +weekly day and time, all in UTC. To pause the schedule, clear +**Enable scheduled backups** and save. The account page shows the next +scheduled run and identifies the source of each backup in the history. +Operators also need **Can change account backup schedule** to manage schedules. + +The scheduler captures the account's current resources when it queues the +backup. If an account already has a backup queued or running at dispatch, +the scheduler skips that occurrence. After a period offline, it queues at +most one missed backup per account and continues with the next future time. +Scheduled ZIPs are stored alongside manual backups and require the same +server-side retention management. + #### Include mailboxes on the same server Complete the [Postfix and Dovecot setup](development.md#apply-a-mailbox-manifest) @@ -420,8 +435,12 @@ sudo systemctl daemon-reload Set `COULOBRE_LOCAL_ACCOUNT_BACKUP_MAIL=1` in `/etc/coulobre/panel.env` and restart `coulobre-panel` and `coulobre-backup-worker`. Operators with permission to view mailbox requests can select **Include mailboxes** when -creating an account backup. Provision all listed mailboxes before requesting -a backup with mail. For mailboxes on a separate server, use the +starting or scheduling an account backup. They can also edit an existing +schedule that includes mail. If you disable mailbox backups while such a +schedule is enabled, the subsequent jobs report a failure until you adjust +the schedule or re-enable local mailbox backups. Provision all listed +mailboxes before requesting a backup with mail. For mailboxes on a separate +server, use the [bundle workflow for separate nodes](development.md#bundle-backups-from-separate-nodes). ## Publish local DNS zones from the panel diff --git a/docs/development.md b/docs/development.md index 00bd9c0..9723eed 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1030,10 +1030,12 @@ each listed database, and the requested mailbox archives. Back up DNS and panel settings separately. On a single-server installation, operators can start a backup of the website -and databases directly from the account page and view its status there. If -mail is hosted on that server too, enable the **Include mailboxes** option. -[Enable account backups in the panel](deployment.md#start-local-account-backups-from-the-panel), -[include local mailboxes](deployment.md#include-mailboxes-on-the-same-server) +and databases directly from the account page and view its status there. The +panel can also run one daily or weekly backup schedule per account. If mail +is hosted on that server too, enable the **Include mailboxes** option. +See [local account backups](deployment.md#start-local-account-backups-from-the-panel), +[backup schedules](deployment.md#schedule-backups-for-an-account), and +[local mailbox backups](deployment.md#include-mailboxes-on-the-same-server). If all resources in the manifest are on one server, run the account backup command there as root. To include mail, pass the manifest downloaded with