{{/* 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}}
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.
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.