Skip to main content
These commands match Settings → Backups in the dashboard and need a superadmin. For what a backup holds and how restores work, see Backups and restore. Targets are named by name or id.

Status and runs

dnz backup run exits with an error when a backup fails.

Targets

--encrypt asks for the passphrase twice, or reads DNZ_BACKUP_PASSPHRASE. targets set --set changes only the settings given; stored secrets stay unless you give new ones.

Schedules and retention

Restore

SOURCE is a local file (uploaded to the server), or TARGET:ARCHIVE (TARGET:latest for the newest archive on it).
Encrypted archives ask for the passphrase, or read DNZ_BACKUP_PASSPHRASE. A full restore signs everyone out: run dnz login again with an account from the backup. The server saves the data from before in its data folder first and prints where.

Without a server

--offline restores into database.url (from the config file or DNZ_DATABASE_URL) on this machine, for a new or broken install. Stop DNZ first. decrypt writes the plain zip of an encrypted archive.

Every zone as BIND files