Document local account backups from the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s

This commit is contained in:
parkel committed 2026-11-21 12:35:24 +01:00
1 parent b47a8c0859
commit 474244a152
2 files changed
+39

No files matched your search

+35
View File
@@ -360,6 +360,41 @@ Download the account backup manifest from the panel. Use it to create one
ZIP on a single server or bundle native archives from separate nodes.
[Account backup and recovery](development.md#back-up-a-hosting-account)
### Start local account backups from the panel
Enable this option when the panel, website, and the account's MariaDB
databases run on the same server. The backup service uses the default MariaDB
socket and the website and database registries on that server.
```sh
sudo groupadd --system coulobre-backup-requests
sudo useradd --system --user-group --no-create-home --home-dir /nonexistent \
--shell /usr/sbin/nologin coulobre-backup-worker
sudo install -m 0644 deploy/systemd/coulobre-account-backup.socket \
deploy/systemd/coulobre-account-backup@.service \
deploy/systemd/coulobre-backup-worker.service /etc/systemd/system/
sudo systemctl daemon-reload
```
Set `COULOBRE_LOCAL_ACCOUNT_BACKUPS=1` in `/etc/coulobre/panel.env`, then apply
pending migrations and restart the panel services.
```sh
panel_manage migrate --noinput
sudo systemctl restart coulobre-panel coulobre-worker coulobre-beat
sudo systemctl enable --now coulobre-backup-worker.service
```
Open the account and select **Create backup**. Operators need permission to
view hosting accounts, Apache previews, and database requests, plus
**Can add account backup job**. Reload the page to see the status and the path
of the completed ZIP. Only one backup can be queued or running for an account
at a time. The node gives each backup up to 30 minutes.
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).
## Publish local DNS zones from the panel
Enable the [DNS publishing socket](development.md#enable-local-dns-publishing)