{{/* Backup (mockup backup.html): the whole instance in one archive, and one domain brought in from another SelfPost. Two boxes, each its own form and its own POST; a refusal of either comes back as the flash above them. The password fields of the full backup are shown when the box is ticked (panel.js reads data-encrypt-toggle / data-encrypt-fields); the import asks for a password only for an encrypted file (data-import-file / data-import-password-fields). Without scripts all of them are visible. */}} {{define "content"}} {{template "page_head" .Head}} {{if .Flash}}{{template "flash" .Flash}}{{end}}
{{template "box_open" .Full}} {{template "body_open"}}

data/ (database, DKIM keys, credentials, the queue), docker-compose.yml, .env and certs/ in one archive. Restore into an empty project directory and start the same SelfPost version. The reverse-proxy vhost is not included.

Keep this password: SelfPost does not store it, and the file cannot be opened without it.

{{template "body_close"}} {{template "box_close"}}
{{template "box_open" .Import}} {{template "body_open"}}

A domain export from another instance — plain .json or encrypted .spde. Its DKIM key and application passwords come across, so the published DNS needs no change. The export itself is made on the domain's settings page.

Asked only for an encrypted .spde file.

{{template "body_close"}} {{template "box_close"}}
{{end}}