Document account backups that include mailboxes
This commit is contained in:
1 parent
dfd1689c80
commit
f988379834
2 files changed
+31
-18
No files matched your search
+3
-2
@@ -356,8 +356,9 @@ managed database and restore it to an empty database with the same identity.
|
|||||||
|
|
||||||
## Back up an account's website and databases
|
## Back up an account's website and databases
|
||||||
|
|
||||||
Download the account backup manifest from the panel. Use it to create one
|
Download an account backup manifest from the panel. Use it to create one ZIP
|
||||||
ZIP on a single server or bundle native archives from separate nodes.
|
on a single server or bundle native archives from separate nodes. The CLI can
|
||||||
|
also include mailbox archives when the downloaded manifest lists mailboxes.
|
||||||
[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
|
### Start local account backups from the panel
|
||||||
|
|||||||
+28
-16
@@ -894,16 +894,20 @@ backup. The website can be recovered while its web services are stopped.
|
|||||||
|
|
||||||
Open the account as an operator and select **Download backup manifest**. The
|
Open the account as an operator and select **Download backup manifest**. The
|
||||||
manifest lists the primary website and all database requests for the account.
|
manifest lists the primary website and all database requests for the account.
|
||||||
Provision those resources before running the backup. The ZIP archive contains
|
Select **Download backup manifest with mail** to also include mailbox requests
|
||||||
the native website archive and a compressed SQL dump for each listed database.
|
from every mail domain assigned to the account. This option requires permission
|
||||||
Back up mail, DNS, and panel settings separately.
|
to view mailbox requests. Provision all listed resources before running the
|
||||||
|
backup. The ZIP contains the native website archive, a compressed SQL dump for
|
||||||
|
each listed database, and the requested mailbox archives. Back up DNS and panel
|
||||||
|
settings separately.
|
||||||
|
|
||||||
On a single-server installation, operators can also start a backup and view
|
On a single-server installation, operators can start a backup of the website
|
||||||
its status directly on the account page.
|
and databases directly from the account page and view its status there.
|
||||||
[Enable account backups in the panel](deployment.md#start-local-account-backups-from-the-panel)
|
[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
|
If all resources in the manifest are on one server, run the account backup
|
||||||
command as root. Add `--socket PATH` when MariaDB uses a custom socket.
|
command there as root. To include mail, pass the manifest downloaded with
|
||||||
|
mail. Add `--socket PATH` when MariaDB uses a custom socket.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo install -d -m 0700 /var/backups/coulobre
|
sudo install -d -m 0700 /var/backups/coulobre
|
||||||
@@ -912,9 +916,10 @@ sudo /opt/coulobre/bin/coulobre-account-backup create \
|
|||||||
```
|
```
|
||||||
|
|
||||||
Use a new archive filename. Allow space for the component archives and the
|
Use a new archive filename. Allow space for the component archives and the
|
||||||
finished ZIP while it is assembled. The website and databases are captured
|
finished ZIP while it is assembled. Maildir snapshots also need space on the
|
||||||
in sequence. Pause application writes, SFTP uploads, and schema changes across
|
mail volume. The components are captured in sequence. Pause changes to the
|
||||||
the components if they need to represent a single point in time.
|
listed resources during backup if they need to represent a single point in
|
||||||
|
time.
|
||||||
|
|
||||||
### Bundle backups from separate nodes
|
### Bundle backups from separate nodes
|
||||||
|
|
||||||
@@ -923,7 +928,10 @@ on the web node and the [database backup command](#back-up-and-restore-a-managed
|
|||||||
on each database node. Transfer the resulting files to a root-controlled
|
on each database node. Transfer the resulting files to a root-controlled
|
||||||
directory with mode `0600` on every archive. Name the website archive
|
directory with mode `0600` on every archive. Name the website archive
|
||||||
`website.tar.gz` and each SQL dump `database-<suffix>.sql.gz`, for example
|
`website.tar.gz` and each SQL dump `database-<suffix>.sql.gz`, for example
|
||||||
`database-cms.sql.gz`. Assemble the ZIP with the same account manifest.
|
`database-cms.sql.gz`. When the manifest includes mail, use the
|
||||||
|
[mailbox backup command](#back-up-and-restore-a-mailbox) on the mail node and
|
||||||
|
place each archive under `mailboxes/<domain>/<local-part>.tar.gz` within the
|
||||||
|
component directory. Assemble the ZIP with the same account manifest.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo /opt/coulobre/bin/coulobre-account-backup pack \
|
sudo /opt/coulobre/bin/coulobre-account-backup pack \
|
||||||
@@ -944,11 +952,15 @@ sudo /opt/coulobre/bin/coulobre-account-backup unpack \
|
|||||||
|
|
||||||
Use the recovered `website.json` and `website.tar.gz` with `restore-site`.
|
Use the recovered `website.json` and `website.tar.gz` with `restore-site`.
|
||||||
Use each `database-<suffix>.json` and `database-<suffix>.sql.gz` pair with
|
Use each `database-<suffix>.json` and `database-<suffix>.sql.gz` pair with
|
||||||
`restore-database`. Transfer the relevant pairs when the destination uses
|
`restore-database`. For mail, use the original manifest and archive recovered
|
||||||
separate nodes. For a full recovery, prepare an empty document root and empty
|
as `mailboxes/<domain>/<local-part>.json` and
|
||||||
managed databases with the original manifests and restore all components before
|
`mailboxes/<domain>/<local-part>.tar.gz` with `restore-mailbox`.
|
||||||
resuming application traffic. To recover one website file, use the website pair
|
Transfer the relevant pairs when the destination uses separate nodes. Prepare
|
||||||
with the existing `restore-site --file` option.
|
an empty document root, empty managed databases, and any newly provisioned
|
||||||
|
destination mailboxes before restoration. Resume traffic after the components
|
||||||
|
have been restored. To recover one website file, use the website pair with the
|
||||||
|
existing `restore-site --file` option. Existing website and database bundles
|
||||||
|
continue to unpack with the same filenames.
|
||||||
|
|
||||||
## Run an isolated PHP test site
|
## Run an isolated PHP test site
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user