Deploy the quota-aware local website restore socket
This commit is contained in:
1 parent
215894aa24
commit
14aabb8da7
6 files changed
+86
No files matched your search
@@ -420,6 +420,48 @@ 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.
|
||||
|
||||
#### Restore website files from the panel
|
||||
|
||||
Enable this feature when the website and account backup archive are on the
|
||||
same server. Install the restore socket and give the backup worker access to
|
||||
it.
|
||||
|
||||
```sh
|
||||
sudo groupadd --system coulobre-restore-requests
|
||||
sudo install -m 0644 deploy/systemd/coulobre-account-restore.socket \
|
||||
deploy/systemd/coulobre-account-restore@.service /etc/systemd/system/
|
||||
sudo install -D -m 0644 deploy/systemd/coulobre-backup-worker.service.d/restore.conf \
|
||||
/etc/systemd/system/coulobre-backup-worker.service.d/restore.conf
|
||||
sudo systemctl daemon-reload
|
||||
```
|
||||
|
||||
Set `COULOBRE_LOCAL_WEBSITE_RESTORE=1` in `/etc/coulobre/panel.env`.
|
||||
|
||||
```sh
|
||||
panel_manage migrate --noinput
|
||||
sudo systemctl restart coulobre-panel coulobre-worker coulobre-backup-worker
|
||||
```
|
||||
|
||||
Select **Restore website** on a completed backup for the current account and
|
||||
domain. Operators need the backup permissions listed above and **Can add
|
||||
website restore job**. A backup that includes mail also requires permission
|
||||
to view mailbox requests.
|
||||
|
||||
For one file, enter its path relative to the document root. Make sure the
|
||||
parent directory exists. Select **Replace the existing file at this path**
|
||||
only if an existing site-owned file should be overwritten. Choose **Entire
|
||||
website** to restore all website files to an empty document root. When
|
||||
replacing a file, its old and restored copies must fit within the website's
|
||||
storage quota during staging. The **Website restores** section records the
|
||||
source backup, operator, and result.
|
||||
|
||||
Restore request records under `/var/lib/coulobre/account-restores/` prevent
|
||||
an interrupted worker from applying the same restore twice. Keep these
|
||||
records while corresponding jobs could still be delivered. If the panel
|
||||
cannot confirm a restore, check the destination before submitting another.
|
||||
Use the [account bundle commands](development.md#recover-backups-from-the-bundle)
|
||||
to recover databases, mail, or components on separate servers.
|
||||
|
||||
#### Include mailboxes on the same server
|
||||
|
||||
Complete the [Postfix and Dovecot setup](development.md#apply-a-mailbox-manifest)
|
||||
|
||||
Reference in new issue
Block a user