Document local account backups from the panel
This commit is contained in:
1 parent
b47a8c0859
commit
474244a152
2 files changed
+39
No files matched your search
@@ -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.
|
ZIP on a single server or bundle native archives from separate nodes.
|
||||||
[Account backup and recovery](development.md#back-up-a-hosting-account)
|
[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
|
## Publish local DNS zones from the panel
|
||||||
|
|
||||||
Enable the [DNS publishing socket](development.md#enable-local-dns-publishing)
|
Enable the [DNS publishing socket](development.md#enable-local-dns-publishing)
|
||||||
|
|||||||
@@ -898,6 +898,10 @@ Provision those resources before running the backup. The ZIP archive contains
|
|||||||
the native website archive and a compressed SQL dump for each listed database.
|
the native website archive and a compressed SQL dump for each listed database.
|
||||||
Back up mail, DNS, and panel settings separately.
|
Back up mail, DNS, and panel settings separately.
|
||||||
|
|
||||||
|
On a single-server installation, operators can also start a backup and view
|
||||||
|
its status directly on the account page.
|
||||||
|
[Enable account backups in the panel](deployment.md#start-local-account-backups-from-the-panel)
|
||||||
|
|
||||||
On a server hosting both the website and its databases, run the account backup
|
On a server hosting both the website and its databases, run the account backup
|
||||||
command as root. Add `--socket PATH` when MariaDB uses a custom socket.
|
command as root. Add `--socket PATH` when MariaDB uses a custom socket.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user