Configuration reference
Restorly reads one declarative YAML file, by default /etc/. Check it with:
restorly check --config /etc/restorly/config.yaml
Parsing is strict. Unknown fields, wrong types, duplicate keys and invalid values are errors, all reported at once as file:line: path: message. Features whose module is disabled or not licensed produce warnings, and the affected targets are listed as skipped. They are never silently ignored.
Secrets never go in this file. Every credential is a reference, credentials_ref: secret://<name>, resolved at run time in this order:
- the environment variable
RESTORLY_SECRET_<NAME>(upper case;-and.become_); - the encrypted store (
restorly secret set <name>, encrypted with the master key); - the file
<agent.(modesecrets_dir>/ <name> 0600, no symlinks).
Names use lowercase letters, digits, ., _ and -.
Durations take a unit: 90s, 30m, 26h, 2d, 1d12h. Sizes take a unit: 512MiB, 4GiB, 2GB.
Every setting the panel writes can also be edited here by hand; the panel's Settings → Configuration shows the file and its earlier versions. Edit it as the service user, which owns it once the agent has written it: sudo -u restorly vi /etc/restorly/config.yaml (or nano). Where fs. is 2 (Debian 13, Ubuntu 26.04), an editor run as root may not write a file another user owns in that directory.
agent
| Field | Default | Description |
|---|---|---|
agent | Host-wide settings. | |
agent.mode | validate | validate, or backup+validate (needs the backup module). |
agent. | 1 | Validations the hub's own (built-in) runner runs at the same time (1–64). Size to the host's CPU, RAM and disk. Remote runners add their runner. on top. |
agent. | approve | auto, approve or pinned. Updates are always signed releases, verified against the release keys built into Restorly. approve: the daily check (module update.check) tells admins about a new version, and it is installed after an admin approves it (Settings → General, or restorly update approve VERSION). auto: the newest verified version is installed by the daily restorly-update.. pinned: no check and no install. Installing is done by restorly update apply running as root, never by the agent itself; container installs are only told about updates. |
agent. | 5m | How often the locations of databases with schedule: on_new_backup are listed (1m–24h). A listing reads names and sizes only. |
agent. | 1h | How long after its scheduled time a validation may start before the slot is reported as missed: a signed event report, sent through the notification channels as a failure. Runs waiting for a free runner count as started. 5m to 24h. |
agent. | 30d | How long each run's log is kept. The log holds the run's own log lines and the last 300 lines of each sandbox container; it is shown on the run's page and downloadable there. At least 1h. |
agent.licence_url | https:/ | The licence server: the daily online lease and the trial (module license.online, on by default; off with modules: disable: [license.online]). HTTPS only (plain HTTP only to 127.0.0.1/localhost, for testing). Not used with agent.network: offline. |
agent.panel_url | none | The panel's address as people open it, e.g. https:/. Notification emails link to the run and the database there; without it they have no links. Never contacted by the agent. |
agent.update_url | https:/ | Where signed releases and the update manifest (<url>/) are published. HTTPS only. Point it at your own mirror of the release files for a host without internet access to the vendor; the signatures are checked the same way. |
agent.network | online | online, or offline (no outbound calls: install a licence file downloaded each month from your licence page, or renewed by a script with restorly license renew or the command in Settings → Licence; or a yearly offline licence). |
agent.state_dir | /var/lib/restorly | Reports, keys and state. Absolute path. |
agent.work_dir | <state_dir>/ | Scratch space for restores. Needs room for the largest restore (see restorly preflight). |
agent.secrets_dir | /etc/ | Directory of file-backed secrets (the encrypted store is preferred). |
agent. | /etc/ | Master key (mode 0600) that encrypts stored secrets and the report-signing key. Overridden by the systemd credential restorly-master-key or RESTORLY_MASTER_KEY. Create it with restorly secret init-key. Back it up: without it, stored secrets and the signing key cannot be recovered. |
agent.listen | 127.0.0.1:8420 | host:port of the agent's HTTP listener: Prometheus /metrics, the REST API (/api/v1/, see REST API) and the web panel (Using the panel). It is open only while a module that needs it is enabled. Plain HTTP is allowed only on loopback; any other address requires tls_cert and tls_key, or tls_self_signed. Changes apply on reload. |
agent.tls_cert | PEM certificate (chain) for the listener. Absolute path. | |
agent.tls_key | PEM private key for tls_cert (mode 0600, readable by the service user). Absolute path. | |
agent. | false | Serve a self-signed certificate: ECDSA P-256, valid two years, renewed 30 days before expiry, kept in <state_dir>/, with the host name and listen addresses as names. Browsers warn about it; compare the fingerprint they show with restorly panel cert. Not together with tls_cert. |
agent.docker | Container engine used for restore sandboxes. | |
agent.docker.host | DOCKER_HOST, else Docker's socket, else Podman's | Docker API endpoint, e.g. unix:/. Without one, Restorly uses Docker's socket where it exists, else Podman's system socket /run/, else the user's own. |
agent. | if-missing | if-missing, always, or never (air-gapped hosts with preloaded images). |
agent. | Docker Hub | Image prefix for a mirror, e.g. registry.. |
agent. | 7d | How often the images restores use are pulled again, so their tags' newer releases (and security fixes) arrive. When a tag has moved, the old image is removed unless a kept restore uses it, and a tool image built on the host (pgBackRest, XtraBackup …) is built again on the new base when next needed. 0s never; with pull_policy: never nothing is pulled. Module images.refresh. |
agent. | 0s (keep nothing) | Keep a failed or warning run's restored database for inspection this long, 1h to 72h (module sandbox.keep, Team, Business and Enterprise). The database container stays stopped, with its data and its network without a route out; the run's page shows how to open it on the host (docker start, then docker exec -it … /usr/local/bin/restorly-sql) and Delete now. A kept restore is a full copy of the database on the validation host: it is removed when its time is up, when a restore needs the disk, and beyond three per host, oldest first. In the panel: Settings → General, "Keep a failed restore for inspection" (6 hours to 3 days, 24 hours preselected). |
agent. | not set | Retention for every database in backup mode that does not set its own backup.retention (same fields, below). Set it in the panel under Settings → General. |
agent. | 0 | Days to keep one backup of. |
agent. | 0 | ISO weeks to keep one backup of. |
agent. | 0 | Months to keep one backup of. |
agent. | 3 | How many of the newest backups that passed validation are always kept. |
modules
Every capability is a module that an admin can switch on or off. The same settings are in the panel under Settings → Modules. List modules and their state with restorly modules.
| Field | Description |
|---|---|
modules | Admin choices. Anything not mentioned uses the module's default. |
modules.enable | Module IDs or globs to enable, e.g. [backup, notify.*]. |
modules.disable | Module IDs or globs to disable. Disable wins over a glob in enable. The same exact ID in both lists is an error. |
Unknown IDs, and globs that match nothing, are errors (typo protection). Explicitly enabling a module whose dependency is off is an error that names the dependency.
locations
Backup locations: where existing backups land, and where backup mode writes new ones. Each is defined once and used by many targets. Provider presets and SSH setup: Backup locations. Formerly called sources.
| Field | Types | Description |
|---|---|---|
locations | List of backup locations. | |
sources | Deprecated old name of locations: still read, with a warning; restorly never writes it. Rename the key. | |
locations[].id | all | Unique ID (lowercase letters, digits, -, _). |
locations[].type | all | local, s3, sftp or smb. Each needs its module (source.). NFS: mount it on the host and use local. |
locations[].role | all | source (default: Restorly reads backups here), destination (backup mode writes here), or both. |
locations[] | all | Per-operation network timeout. Default 30s. |
locations[] | all | Pattern for the databases on this location that set no pattern of their own, e.g. {host}/. Name tokens take each database's vars; a directory part is added to the database's path. |
locations[] | all | Patterns for databases under particular directories; they win over naming_default. The most specific rule (longest path) that contains the database's path applies. |
locations[] | all | Directory inside the location the rule covers, e.g. legacy-client/. |
locations[] | all | The pattern for databases under that directory, e.g. backup-{db}-{DD}.. |
locations[] | all | true when this storage is away from the main site (another building, region or provider). Used by the 3-2-1 check (module check.copies). Default false. |
locations[].path | local, sftp, smb | local: absolute directory on the validation host; access is rooted there, so paths cannot escape it, even through symlinks. sftp: base directory on the server (absolute, or relative to the login directory; default: the login directory). smb: directory inside the share (default: the share root). Target paths are relative to it. |
locations[] | s3 | Storage preset: aws, r2 (Cloudflare R2), gcs (Google Cloud Storage via HMAC interoperability keys), b2 (Backblaze B2), wasabi, minio, or custom (default: give endpoint, or none for AWS's global endpoint). A preset fills in the endpoint; aws, b2 and wasabi need region, r2 needs account_id, minio needs endpoint. |
locations[] | s3 (r2) | Cloudflare account ID (32 hex characters). |
locations[] | s3 (r2) | eu or fedramp for buckets created in a Cloudflare jurisdiction (they have their own endpoint). |
locations[] | s3 | https:// URL of an S3-compatible service. Overrides the provider preset. Plain http:// is allowed with a warning. |
locations[] | s3 | Bucket name. Required. |
locations[] | s3 | Region. Default us-east-1; auto for r2 and gcs. |
locations[] | s3 | Force path-style addressing (most self-hosted S3). Default: detected from the endpoint. |
locations[] | s3 | PEM file of a private CA to trust. TLS verification is always on. |
locations[] | s3 | Access key ID (not secret). Required. |
locations[].host | sftp, smb | Server host name or IP. Required. |
locations[].port | sftp, smb | Default 22 (SFTP) / 445 (SMB). |
locations[].user | sftp, smb | Login user. Required. Use a read-only account. |
locations[].share | smb | Share name. Required. |
locations[] | smb | NTLM domain / workgroup, if any. |
locations[] | sftp | Required pinned server key fingerprint, SHA256:... (the format ssh-keyscan host | ssh-keygen -lf - prints). Any of the server's host keys can be pinned: Restorly negotiates the matching key type. restorly preflight prints all of them. |
locations[] | s3, sftp, smb | S3 secret key, SFTP password, or SMB password. |
locations[] | sftp | Your own SSH private key (PEM/OpenSSH), instead of credentials_ref. With neither set, Restorly logs in with its own SSH key: print it with restorly ssh-key show and add it to the account on the host (see Backup locations). |
targets
Each target is one database whose backups are validated.
| Field | Default | Description |
|---|---|---|
targets | List of targets. | |
targets[].mssql | the top-level mssql | The same settings for one database, e.g. a client whose own SQL Server licence covers their restores. |
targets[] | As mssql.accept_eula. | |
targets[] | express | As mssql.edition. |
targets[] | As mssql.licensed. | |
targets[] | As mssql.. | |
targets[].id | Unique ID. Appears in reports, logs and container labels. | |
targets[].engine | mariadb, mysql, postgres, mongodb or mssql (modules engine.mysql / engine.postgres / engine.mongodb / engine.mssql). Backups from these versions are validated, each restored on its own version: MariaDB 10.11, 11.4, 11.8, 12.x and 13.x, MySQL 8.0, 8.4, 9.x and 26.x, PostgreSQL 15, 16, 17 and 18, MongoDB 7.0, 8.x and 9.x, SQL Server 2017, 2019, 2022 and 2025; a backup from another version is not restored, and the run warns with a link to ask for it. SQL Server: full database backups (BACKUP DATABASE ... TO DISK, .bak, also .bak.gz/.zst/.age), restored in Microsoft's SQL Server image on the validation host (x86-64 only, at least 2000 MiB memory) under the mssql licence settings; level-3 checks use DBCC CHECKDB; differential and log backups with chain, certificate-encrypted backups with encryption.format: mssql; FILESTREAM backups are not supported yet, nor live_compare, backup, staging and pitr. MongoDB: mongodump --archive files (.archive, .archive.gz, also age-encrypted) and mongodump --out directories (optionally --gzip); a --oplog dump's oplog is replayed. Collections take the place of tables in the level-3 checks (validate for check_tables, dbHash for table_checksums, indexes and collection options for schema_drift). Not yet for MongoDB: format: physical, live_compare, backup, staging, pitr. | |
targets[] | ID of the location holding the backups. | |
targets[].source | Deprecated old name of location: still read, with a warning. | |
targets[].path | Directory inside the location that holds the backups. Empty (or left out) means the location's own directory. | |
targets[].pattern | File-name pattern with the date tokens {YYYY} {MM} {DD} {hh} {mm} {ss}, the name tokens {host} {db} {engine} {type} {seq} and *, e.g. shop-{YYYY}-{MM}-{DD}_{hh}{mm}.. Without date tokens, the file modification time is used. {engine} is the database's engine; {host}, {db} and {type} take their values from vars and match any word without one; {seq} is a number that orders backups taken at the same time (not for backup mode). A directory part ({host}/{db}/...) may use only name tokens with values and is added to path. Text of varying width (*, a name token without a value) right next to a date token is warned about, because it can take the date's digits. Directory dumps (pg_dump -Fd) match on the directory name. Regex mode: re: followed by a regular expression that must match the whole name, with the timestamp in named groups YYYY, MM, DD (and optionally hh, mm, ss), e.g. re:shop_(?P<DD>\d\d)\.; backup mode needs token mode. Checksum files (.sha256, .sha256sum, .md5) of listed backups are never picked, even by a broad pattern. Split backups (backup sets): files named like the pattern plus a part suffix (.00/.001, .part1, .aa, as split, 7-Zip or rar write them) are read as one backup, in order; a missing part is reported, never restored half, and a checksum file names the joined backup (NAME.sha256). Optional when the location has a naming_default or a matching directory_rules entry. Two databases whose patterns claim the same names in the same directory are warned about. Try a pattern with restorly pattern test --target ID or --location ID --path DIR --pattern P. | |
targets[].vars | Values for the name tokens of this database's pattern (own or inherited): host, db and type, e.g. { host: db-01, db: shop }. Letters, digits, _ . -. Backup mode needs a value for every name token it writes. | |
targets[] | The backup inside archives that hold several files (ZIP, 7-Zip or tar, also compressed or encrypted), for example one archive a night with every database of a server: a name pattern with the same tokens as pattern ({db} and the other name tokens take their values from vars), matched against the names of the files in each archive, in any directory of it, e.g. {db}.sql.gz or shop-{YYYY}{MM}{DD}.. With date tokens the file with the newest date is validated; without, exactly one file must match. An archive that holds one file needs none. Databases that pick different files from the same archives are not warned about as overlapping. A tar archive is read through once to find its files. Not for backup mode or pgBackRest. | |
targets[] | A database whose backups pgBackRest makes (with format: pgbackrest): Restorly reads the stanza's catalogue in the repository, copies the newest backup (with the full or differential backups it builds on, and the WAL that makes it consistent) into the restore sandbox and lets pgBackRest restore it there; PostgreSQL then recovers to the end of the backup and the checks run as for any restore. path is the repository (pgBackRest's repo1-path) inside the location; no pattern is needed. Unencrypted repositories on any location type; not yet: encrypted repositories (repo-cipher-type), backup mode, staging copies, the point-in-time test, the copies check and on_new_backup. See Backups made by other tools. | |
targets[] | Required. The stanza whose newest backup is validated (pgbackrest info lists them). | |
targets[] | An encrypted repository's passphrase (repo1-cipher-pass, with repo-cipher-type=aes-256-cbc), as secret://name. Restorly decrypts the catalogue with it in memory and gives it to pgBackRest only inside the restore sandbox (amended 2026-10-29). Needs module check.encrypted (Business and Enterprise); without it the database is skipped with the reason. | |
targets[].barman | A database whose backups Barman or Barman Cloud makes (with format: barman; Barman Cloud is also how CloudNativePG backs up): Restorly reads the server's catalogue (every backup's backup.info), restores the newest completed backup in the sandbox with the WAL that makes it consistent, and PostgreSQL recovers to its end before the checks run. path is Barman Cloud's destination path inside the location (an s3 location for a bucket), or Barman's barman_home; no pattern is needed. Not yet: snapshot, incremental, compressed (backup_compression) and encrypted backups, backup mode, staging copies, the point-in-time test, the copies check and on_new_backup. See Backups made by other tools. | |
targets[] | Required. Barman's server name (barman list-servers); with CloudNativePG, the cluster's serverName, by default the cluster's name. | |
targets[].chain | A SQL Server database's full, differential and log backups: pattern matches the full backups, chain.diff and chain.log the others, each relative to path. Restorly restores the newest full backup, then its newest differential backup, then the log backups after it in the order SQL Server's log sequence numbers give, the last one with recovery; the time of the last log backup restored is the recovery point. A log backup that does not follow the one before (a missing file) fails the run and says which; a differential backup made on another full backup is not restored. An empty chain: {} is Ola Hallengren's layout: path is the database's directory (<server>/), with the backups in FULL, DIFF and LOG (without pattern, the full backups' default is FULL/; a location's naming default does not apply). Not yet: striped backups (several files per backup), backups inside archives (file_in_archive). See SQL Server. | |
targets[] | DIFF/ | The differential backups' name pattern, its directory part relative to path. Only the newest one after the full backup is restored (each holds every change since its full backup). None found: the log backups are restored on the full one. |
targets[] | LOG/ | The log backups' name pattern, its directory part relative to path. A database in the simple recovery model has none, and none are expected; in the full or bulk-logged model, no log backup after the full or differential one is a warning. |
targets[] | 2h | The newest log backup restored must be younger, else the run warns (is the log backup job still running?). Backups changed within settle are not restored yet, so allow the log backups' interval plus settle. |
targets[].format | logical | pgbackrest for a pgBackRest repository (see targets[]); barman for Barman or Barman Cloud backups (see targets[].barman); walg for WAL-G backups (path is WAL-G's prefix: Restorly reads its catalogue, restores the newest backup, a delta backup on the backups it builds on, with the WAL that makes it consistent); logical (dumps), or physical for PostgreSQL base backups (pg_basebackup -Ft, tar with backup_label, optionally compressed or age-encrypted). Validation extracts the base backup, starts PostgreSQL on it with production settings neutralised and lets it recover from the WAL it carries (take it with -X fetch or -X stream). For MariaDB, physical validates mariadb-backup backups: an xbstream (--stream=xbstream), a tar of a backup directory, or the backup directory itself left unpacked on the storage, optionally compressed or age-encrypted. Restorly verifies the stream's checksums, prepares the backup and starts MariaDB of the same series on it. Incremental, partial and --compress (qpress) backups are refused. For MySQL 8.0 and 8.4, physical validates Percona XtraBackup backups in the same forms: prepared with XtraBackup in an image built on the host from the official MySQL image plus Percona's signed package, then MySQL of the same series started on it; incremental, partial, --compress and --encrypt backups, and XtraBackup backups of MySQL 9.x and 26.x, are refused. |
targets[] | UTC | IANA zone of the timestamps in file names, e.g. Europe/Sofia. |
targets[].max_age | 26h | The newest backup must be younger than this. |
targets[] | twice the longest of its last 10 runs, at least 30m | How long a run may take before it is reported as hung: a signed report that fails, sent through the notification channels; the run goes on, and its own report follows when it ends. At least 5m. |
targets[] | Optional recovery targets. Without them the panel still shows the point each database can be restored to and how long its restores take; with them, each run that restores checks them, and a missed one makes the run a warning (it does not mean the backup is broken; channels with on: [warn] are told). | |
targets[] | Recovery point target: the data a restore brings back may be at most this old, e.g. 1d for nightly backups (check restore.rpo). The data's time is the backup's, or with the point-in-time test (pitr) the last transaction replayed on top of it. "What needs you" also lists the database when its newest backup that passed validation becomes older than this between runs. At least 1m. | |
targets[] | Restore time target: the restore may take at most this long, e.g. 30m (check restore.rto). This is the restore into the sandbox on this host, so it is the technical part of a recovery time objective; preparing a server and switching applications over add to it. At least 1m. | |
targets[].image | version-matched | Override the restore image, e.g. an internal build. Normally chosen from the dump's server version. MongoDB: required for directory dumps without prelude.json (older tools); a dump from MongoDB 8.0, whose image does not start on Linux 6.19 and newer, is restored with mongo:8.2 and the report says so. |
targets[] | Cron expression (5 fields, or @daily etc.) for the agent, or on_new_backup: validate each new backup as soon as it is complete (module schedule.watch). With on_new_backup the hub lists the location every agent.; when no new backup arrives within max_age of the last validation, a run starts anyway, so the freshness check alerts. The CLI ignores it. | |
targets[].settle | 10m | How long a backup file must stay unchanged before it counts as complete. Every schedule skips files changed more recently: the run validates the newest complete backup and says the newer one was still being written. Object storage (s3) never waits: an upload appears only once finished. 0s turns it off. |
targets[] | all in the dump | Limit checks to these databases. PostgreSQL: the cluster's own postgres database is checked when the backup has tables in it (listed after the others, so it is not the first for custom checks). |
targets[].client | The clients[] entry this database belongs to (module multisite): the panel's client switcher and per-client reports use it. | |
targets[].example | false | An example database, as Add examples and restorly examples deploy write it: not counted towards the licence's database limit, every custom check run on every plan, its reports signed outside the hash chain, and kept out of alerts, monthly and evidence reports, metrics and the dashboard. Set by Restorly; restorly examples remove takes the examples out. |
targets[].tags | Up to 20 tags, e.g. { env: prod, team: finance } (names and values: lowercase letters, digits, _, . and -, as runner labels). The Databases page groups and filters by them; they change nothing in validation. | |
targets[] | any runner | Labels a runner must have to validate this database, e.g. { site: sofia }. Without one, the built-in runner hub-local is preferred. A database with no matching online runner is skipped with the reason, never failed. Backups use the same selector and also need a runner that offers can_backup=true; a backup with no such runner is recorded as failed. |
targets[].copies | Other places the same backups are copied to (by your own tools, rclone, NAS replication and so on). With module check.copies on, every validation checks that the newest copy is there and fresh, and judges the 3-2-1 rule: at least two backups on at least two devices, one of them offsite. Copies are not restored and not counted as databases. | |
targets[] | ID of the location holding the copy. The runner that validates the database must reach it too. | |
targets[] | Directory of the copy inside that location. Must differ from the database's own directory. | |
targets[] | the database's pattern | File-name pattern of the copies, e.g. with an extra .age when the copy is encrypted. |
targets[] | the database's max_age | The newest copy must be younger than this; copies made later in the day need more. |
targets[].staging | Sanitised staging copy (module addon.staging, off by default). After a validation whose checks did not fail, the masking rules are applied to the restored copy, which is then dumped to this destination for development and test. Production is never touched; a staging problem is a warning and never changes whether the backup is valid. | |
targets[] | A location with role destination or both. | |
targets[] | Directory for the staging copies; it must differ from the database's backup directory. | |
targets[] | File name with date tokens, e.g. shop-staging-{YYYY}{MM}{DD}.. The extension sets the format and compression as in backup mode (PostgreSQL: .dump for pg_dump's custom format); .age encrypts to encryption.. | |
targets[] | 3 | Staging copies kept. Only copies Restorly recorded writing are ever deleted. |
targets[] | Masking rules, applied in order. Columns whose names look personal (email, phone, name, address, IBAN, birth date and similar) without a rule make the check warn. | |
targets[] | the only restored database | Database of the table. |
targets[] | Table; PostgreSQL schema.table (default schema public). | |
targets[] | Column to mask. | |
targets[] | email (hash@example., unique stays unique), name ("Person " + hash), phone (digits from a hash), hash (hex hash, the original's length), null, or redact ("REDACTED"). | |
targets[].pitr | Point-in-time restore test (module addon.pitr, off by default): for PostgreSQL base backups (format: physical), the archived WAL from the base backup's first segment on is replayed to its end; for MariaDB and MySQL logical dumps taken with --master-data=2 or --source-data=2, the binary logs from the dump's position on are applied with mariadb-binlog or mysqlbinlog (only the dump's database when it holds one; for MySQL in a tool image built on the host, the official image plus mysqlbinlog from MySQL's signed repository). The check records the last transaction reached. restorly run --pitr-to TIME restores to a chosen time instead (a drill; see Backup mode). | |
targets[] | the database's location | Location of the WAL archive. |
targets[] | Directory of the WAL segments (archive_command) or of the copied binary logs (e.g. mysql-bin.000042), e.g. pg/wal. Files may be gzip- or zstd-compressed (.gz, .zst) and age-encrypted (.age, with encryption.). | |
targets[] | 1h | The newest archived segment must be younger than this, or the check warns that archiving may have stopped. With archive_timeout set on the server, use a little more than it. |
targets[] | agent. | This database's own time for keeping a failed restore for inspection, 1h to 72h; 0s keeps none of its restores. In the panel: the database's settings. |
targets[] | Restorly's reckoning | The disk a restore of this database needs, for example 40GiB, reserved instead of Restorly's own reckoning: what the last restore put on disk, or before one an estimate from the backup's size, plus 10%. Set it when that reckoning is wrong for this database. It is taken as it is (no headroom is added) and, like a measurement, a restore that could never get it on this disk fails before it starts; the report names it as set for this database. A bare number is bytes. In the panel: the database's settings. |
targets[] | Upgrade rehearsal (module addon.upgrade, Business and Enterprise): restores the backup of the database's latest restore that passed on the next major version Restorly supports too (for example PostgreSQL 17 to 18), with the release Restorly tests, runs the database's checks there and compares every table's row count with that restore. The database's page shows the result; it is never the database's own outcome, and only the event upgrade_rehearsal reports it. Logical backups only: physical ones start only on their own major version. upgrade_rehearsal: {} takes the defaults. | |
targets[] | 0 5 * * 0 | When it runs (cron, host time zone): Sundays at 05:00. Rehearse now on the database's page runs it at once. |
targets[] | the release Restorly tests | The next version's image, e.g. mariadb:13.0 from your own registry. Needed when the database restores with its own image. |
targets[] | Optional read-only connection to the production server this backup comes from, to compare row counts table by table with the restored copy (module check., off by default). A probe container connects from the validation host; only fixed catalog and COUNT(*) queries run, in a read-only session. Custom SQL never runs on production. | |
targets[] | Production host. | |
targets[] | 3306 / 5432 | Production port. |
targets[] | A read-only user (SELECT only). Restorly warns if given a superuser. | |
targets[] | Database to compare. Default: those in the dump. | |
targets[] | Password reference. | |
targets[] | prefer | prefer (TLS when the server offers it), require (fail without TLS), or disable (warned: password and counts in clear). |
targets[] | exact | exact: COUNT(*) per table (accurate; reads every table on production, so mind the load on large databases). estimate: catalog statistics (cheap, but InnoDB estimates can be off by half). |
targets[] | 10 (50 for estimates) | Allowed difference per table between the backup and production before a warning. Production normally grows after the backup, so pick a value above your daily growth. |
targets[] | 60s | Limit per statement on production; a table that exceeds it is reported as not compared. |
targets[].checks | Which checks run. | |
targets[] | all | Built-in checks: integrity (level 1), restore (level 2), check_tables, row_count_compare, schema_drift, empty_tables, table_checksums (level 3). |
targets[] | Tables that must never be empty (fails when empty). | |
targets[] | Reference tables whose content must not change (database.table, or database. on PostgreSQL). With table_checksums, a changed fingerprint while the schema is unchanged fails the run. | |
targets[] | 5 | Tables fingerprinted per run by table_checksums besides the critical and static ones. The sample rotates daily, so every table is covered over time. Reads whole tables in the restored copy only; tables of more than 20 million rows are left out (a full fingerprint takes too long each night) unless listed in static_tables, which are fingerprinted whatever their size. |
targets[] | Custom SQL checks (level 4, module check.custom_sql), run on the restored copy as a read-only role, in this order. Your plan sets how many run per database: beyond it the last ones are skipped at every run with the reason, and restorly check names them. | |
targets[] | Unique within the target. | |
targets[] | first in dump | Database to run against. |
targets[] | The query. Stored verbatim in the report. The first 100 rows are kept. For MongoDB, one mongosh expression evaluated with db set to the check's database, e.g. db.orders.countDocuments({status: "paid"}): a cursor or an array gives a row per document (a column per top-level field), anything else one value. | |
targets[] | Typed expectation on the first column of the first row, or on the row count. | |
targets[] | =, !=, <, <=, >, >=, between, regex, not_null, or rows>=. | |
targets[] | Number, string or date for comparisons; [min, max] for between; a pattern for regex; a whole number for rows>=; none for not_null. | |
targets[] | 60s | Statement timeout (1s–1h). |
targets[] | fail | fail or warn when the expectation is not met. |
targets[] | Trend thresholds (whole percentages) that produce warnings. | |
targets[] | 20 | Backup smaller than the previous one by more than this. |
targets[] | 300 | Backup larger than the previous one by more than this. |
targets[] | 50 | Restore time up by more than this (RTO trend). |
targets[] | 10 | Any table's row count down by more than this. |
targets[] | Encrypted backups; module check.encrypted, in the Business and Enterprise plans: without it the database is skipped with the reason. Validation decrypts them in memory, only into the throwaway restore, with what format needs; backup mode encrypts the backups it takes with age, to recipients (the pattern then ends in .age, e.g. .sql.zst.age). Keys and passwords are secrets (secret://, the encrypted store), never in this file. A backup that is encrypted in a known format while the settings name none or another fails with what it is encrypted with, not as possible ransomware; a backup that is not encrypted while the settings say it is gets a warning (the backup tool may have stopped encrypting). Key escrow is yours: without the key or password nobody, including Restorly, can restore these backups. | |
targets[] | age | How the backups are encrypted: age; gpg (GnuPG, gpg --encrypt to a key or gpg --symmetric with a passphrase, binary or armoured); openssl (openssl enc with a password: AES-256/192/128-CBC, with or without -pbkdf2, binary or base64); zip (a ZIP archive holding the backup, with a password: ZipCrypto or WinZip AES; stored or deflated); 7z (a 7-Zip archive holding the backup, with a password, also with encrypted file names); mssql (SQL Server's own backup encryption, BACKUP ... WITH ENCRYPTION, or a database with transparent data encryption: the server certificate is installed in the restore sandbox first). ZIP and 7-Zip archives without a password need no settings: an archive must hold one file, the backup. |
targets[] | age public keys (age1...) that new backups are encrypted to (format age, backup mode). Restorly never needs the private key to write. | |
targets[] | Format age: secret holding the private key(s) (AGE-SECRET-KEY-1., one per line) used to validate encrypted backups. Without it, encrypted backups fail validation with a clear message. | |
targets[] | Format gpg: secret holding the private key(s), as gpg --export-secret-keys --armor writes them. A key protected by a passphrase also needs password_ref. Leave it out for gpg --symmetric backups. | |
targets[] | Secret holding the password: the GnuPG passphrase (of the key, or of gpg --symmetric), the openssl enc password, the ZIP or 7-Zip password, or the password of the SQL Server certificate's private key file. A trailing line break is ignored. | |
targets[] | Format mssql: secret holding the certificate file (BACKUP CERTIFICATE name TO FILE = '...'), base64-encoded (the panel stores an upload so). | |
targets[] | Format mssql: secret holding the certificate's private key file (WITH PRIVATE KEY (FILE = '...', ENCRYPTION BY PASSWORD = '...')), base64-encoded; its password is password_ref. | |
targets[] | Format openssl, only when openssl enc was run with other than the usual settings: those (AES-256, AES-128 or AES-192 CBC; -pbkdf2 with 10000 iterations, or without -pbkdf2 with SHA-256 or MD5) are tried in turn, and the one that gives a backup is used. | |
targets[] | aes-256-cbc, aes-192-cbc or aes-128-cbc. | |
targets[] | pbkdf2 (openssl enc -pbkdf2) or legacy (without it; OpenSSL before 1.1.1, or still without -pbkdf2). | |
targets[] | sha256, sha512, sha1 or md5 (openssl enc -md; OpenSSL before 1.1.0 used md5). | |
targets[] | 10000 | openssl enc -iter, with kdf: pbkdf2. |
targets[].backup | Backup mode (with agent.mode: backup+validate and the backup module): Restorly takes the dump itself, in a version-matched container, and writes it to the target's location (role destination or both) under path, named by pattern. The pattern's extension sets the format: .sql.zst (recommended), .sql.gz or .sql for MySQL/MariaDB; .dump (pg_dump custom format, recommended) or .sql[.gz/.zst] for PostgreSQL; .archive.zst (recommended), .archive.gz or .archive for MongoDB (mongodump --archive of one database); .bak.zst (recommended), .bak.gz or .bak for SQL Server (BACKUP DATABASE … WITH COPY_ONLY, CHECKSUM of one database, see server_dir). The pattern needs date tokens and no *. A .sha256 file is written next to each backup. | |
targets[] | The production server to back up. | |
targets[] | Host name or IP. | |
targets[] | 3306 / 5432 / 27017 / 1433 | Port (MySQL and MariaDB, PostgreSQL, MongoDB, SQL Server). |
targets[] | Backup user. MySQL/MariaDB: SELECT, SHOW VIEW, TRIGGER, EVENT, LOCK TABLES (plus RELOAD or FLUSH_TABLES on MySQL 8.0.32+). PostgreSQL: pg_read_all_data. Restorly warns if the user can change data. | |
targets[] | Password reference. | |
targets[] | prefer | prefer, require or disable (warned). |
targets[] | Databases to back up (exactly one for PostgreSQL, MongoDB and SQL Server). | |
targets[] | SQL Server only, required: the directory BACKUP DATABASE writes to, as SQL Server sees it (/var/, D:\Backup or a share). Restorly names each file for its run and writes it with COPY_ONLY, so the database's own differential and log backups are not disturbed. | |
targets[] | SQL Server only, required: the same directory as the host taking the backup sees it (a local path, or a mounted share). Restorly reads the file there, compresses it into the location and removes it. SQL Server writes it readable by its own user and group only (0660), so give the directory Restorly's group with the setgid bit (chgrp restorly DIR && chmod 2770 DIR): every backup then takes that group and Restorly can read and delete it; without runner_selector the backup runs on the hub, so the directory must be on the hub's host. | |
targets[] | MariaDB physical backups (patterns ending .xbstream, .xbstream.zst, .xbstream.gz): the server's data directory on the host that takes the backup. mariadb-backup reads it there (mounted read-only), so pin the database with runner_selector to a runner on the database host. The backup user needs RELOAD, PROCESS, LOCK TABLES and BINLOG MONITOR. databases does not apply (the whole server). | |
targets[] | When to take backups (cron, host time zone). Without it, backups are taken only on demand (restorly backup). | |
targets[] | true | Validate each backup right after taking it. |
targets[] | 6h | Limit for one dump. |
targets[] | agent., else keep all | Grandfather-father-son retention over the backups Restorly wrote (never other files): the newest backup of each of the last N days, ISO weeks and months is kept, plus always the newest backup and the newest keep_passed (default 3) that passed validation. Applied after each successful backup, once an admin confirmed the policy's preview (the database's Retention tab, or restorly backup prune --target ID --confirm; a changed policy needs confirming again); afterwards Restorly checks that exactly the planned files went. Preview with restorly backup prune --dry-run. Paused while the licence has halted backups. retention: {} keeps everything even when a default is set. |
targets[] | 0 | Days to keep one backup of. |
targets[] | 0 | ISO weeks to keep one backup of. |
targets[] | 0 | Months to keep one backup of. |
targets[] | 3 | How many of the newest backups that passed validation are always kept, whatever the rest of the policy says (at least 1). |
targets[] | Restore sandbox limits. | |
targets[] | engine default | CPU limit, e.g. 2 or 1.5. |
targets[] | engine default | Memory limit, at least 256MiB. |
notifications
Each entry is a channel (module notify.). Sends happen after every run (CLI and agent) and never change a run's outcome: a failed delivery is retried, then logged and recorded in the audit log.
Messages contain the target, outcome, run ID, report hash and the checks that did not pass. Custom SQL checks are listed by ID and expectation only: their values and query errors stay in the report.
| Field | Description | |
|---|---|---|
notifications | List of channels. | |
notifications[] | email, slack, teams or webhook (modules notify.). | |
notifications[] | Email recipients (email only). | |
notifications[] | Webhook URL (Slack incoming webhook, Teams Workflows webhook, or your endpoint). Webhook URLs are secrets. | |
notifications[] | ticket (email channels only): each database's alerts as one email thread per incident: the subject [Restorly] <database> (<client>): failed (warning, not validated, passed again), the alerts from the failure or warning that opens an incident to its recovery threaded to the first by In-Reply-To and References, and X-Restorly-Database, X-Restorly-Client, X-Restorly-State and X-Restorly-Incident headers. Subscribe the channel to failure and recovery. Empty: the usual email. | |
notifications[] | Limit this channel to the databases of these clients (managed IT providers, module multisite): it gets only their alerts, weekly summary, monthly evidence and reports. Empty (the default): every database. Unknown clients are rejected; with multisite off the limit does not apply and a warning says so. | |
notifications[] | Events: failure (run failed), warn (run passed with warnings, e.g. a trend alert, or could not run: skipped, with the reason, for example no runner online), recovery (pass after fail, warn or skip), weekly_summary, monthly_evidence (on the 1st at 07:00 host time, the previous month's evidence report (NIS2, ISO 27001, DORA, BSI IT-Grundschutz) for every database: attached as a PDF to emails, a notice with its figures on the other channels; sent later in the month's first week if the agent was down, once per channel and month, and an hour apart after a failed delivery; needs module report., Business and Enterprise), upgrade_rehearsal (an upgrade rehearsal that does not pass, or is skipped, with the reason, and one that passes again after that; never failure, warn or recovery, which follow the database's own runs only). A database whose failure is acknowledged sends no failure or warn until it passes or the acknowledgement's time runs out; its recovery is sent. Licence notices go to every channel whatever it subscribes to: reminders before a licence or trial ends, when validation pauses, and when a licence renewed online covers less than before (license_changed: the features it does not include, the usage over its limits and what stopped). | |
notifications[] | summary | How much of a run an alert tells. summary: the database, the outcome and each check that did not pass, with what database tools quote in their errors (dump text, key values) removed and custom checks' values left out. full: the signed report's own words, including custom checks' query results and the tools' errors as they are; data from your backups can reach the channel, so choose it only for a channel you trust with that data. link: only the database, the outcome and the steps that failed, with a link to the run in the panel (needs agent.panel_url), where people with access sign in to see the rest. |
notifications[] | When weekly_summary is sent (cron, host time zone). Default 0 8 * * 1 (Monday 08:00). A summary missed while the agent was down is sent when it starts, if the slot is less than a day old. |
smtp
The mail server for email notifications. Required when any notification has type: email.
Email notifications are HTML in Restorly's email design with a plain-text alternative: the logo (sent inside the email, nothing is loaded from the internet), a coloured status line, the run's facts, the checks that did not pass and, with agent.panel_url set, a button to the run in the panel. They carry no query results or row data, like every channel.
| Field | Default | Description |
|---|---|---|
smtp | Mail server settings. | |
smtp.host | Server name. | |
smtp.port | 587 (465 for implicit) | Server port. |
smtp.tls | starttls | starttls (required, never falls back to plain text), implicit (TLS from the first byte), or none (loopback or unauthenticated relays only). |
smtp.from | Sender address. | |
smtp.user | Login name; required with credentials_ref. | |
smtp. | The SMTP password (secret://name). Omit for an unauthenticated relay. | |
smtp.ca_cert | system roots | PEM file of a private CA that signed the server certificate. |
Hub and runners
| Key | Default | Meaning |
|---|---|---|
hub | This host accepts remote runners. Needs module runners.remote. | |
hub.listen | Address runners dial, mutual TLS with the hub's internal CA, e.g. 0.0.0.0:8443. Separate from the panel listener. | |
hub.advertise | The https:// URL runners use to reach the hub; it goes into the join command. | |
hub.labels | Labels of the built-in runner hub-local, e.g. { site: sofia, vlan: db }. | |
runner | Settings of this host when it runs as a remote runner (restorly runner). The hub address and keys come from restorly runner join. | |
runner.labels | Labels this runner offers, matched by targets[]. Lowercase letters, digits, _ . -. The runner adds can_backup itself: true when module backup is enabled in its own modules: section, which lets the hub send it backup jobs; a can_backup set here is replaced. | |
runner. | 1 | Jobs this runner runs at the same time. They add to the hub's own agent.: the hub runs as many validations at once as all online runners have slots. Raise it only where the host has the CPU, memory and disk for that many restores at once. |
runner.dedicated | false | The runner takes only the databases whose runner_selector its labels match, never one without a selector: a large database's own runner. Restorly sets the label dedicated: "true" for it (one set in runner.labels is replaced); the capacity view counts the databases without a selector against the other runners only. |
Clients (module multisite)
| Key | Default | Meaning |
|---|---|---|
clients | Customers of a managed IT provider. Databases name theirs with targets[].client; the panel's client switcher filters every screen and report by it. Managed in the panel too, in Settings → Clients (module multisite). | |
clients[].id | Short ID, e.g. online-shop. | |
clients[].name | The name shown in the panel and in reports. |
SQL Server licence (mssql, module engine.mssql)
SQL Server backups are restored in Microsoft's SQL Server image on the validation host, the same way the other engines use their official images, but only under licence settings you give. Express is free for any use with databases up to 10 GB; for larger databases, use an edition you hold licences for.
mssql:
accept_eula: true # Microsoft's licence terms for the SQL Server image
edition: express # or standard / enterprise with licensed: true
| Field | Default | Description |
|---|---|---|
mssql | How SQL Server databases are restored, for every database with engine: mssql that has no mssql of its own. Restorly starts Microsoft's SQL Server image on the validation host only under these settings. | |
mssql.accept_eula | false | true accepts Microsoft's licence terms for the SQL Server image (mcr.microsoft.com/product/mssql/server). Required: without it SQL Server backups are not restored. |
mssql.edition | express | express (free, any use, databases up to 10 GB of data files: larger ones are refused before restoring), standard or enterprise. Restorly reads the edition from the server and checks the 10 GB limit itself. |
mssql.licensed | false | Required true for standard and enterprise: your statement that you hold SQL Server licences of that edition covering this restore server. Developer and Evaluation editions are not offered. |
mssql. | Optional product key for a licensed edition, as a secret reference; passed to the image instead of the edition name. |
Co-branded reports (branding, module report.branding)
Managed IT providers put their own name, contact and logo above the title of the monthly and the NIS2 / ISO 27001 evidence PDFs they hand to their clients (Enterprise; owner, 2026-10-22). Per-run PDFs stay unbranded: they must re-render byte for byte anywhere to be checked against their signed JSON.
| Key | Default | Meaning |
|---|---|---|
branding | Turns co-branding on. | |
branding.name | Required. The provider's name: "Prepared by <name>". At most 80 characters. | |
branding.contact | Shown after the name, e.g. support@acme-it. or a phone number. | |
branding.logo | Absolute path to a PNG or JPEG (at most 1 MiB, 4000 pixels per side), shown 30 points high. A logo that cannot be read is left out with a warning; the report is still made. |
Provider dashboard (dashboard, module metrics.dashboard)
A managed IT provider sees every client site on one page, hosted on the licence server. Every 15 minutes this site sends its status: the site name, version, licence plan and status, runner counts, and per database its ID, client, engine, last outcome, when it last ran and last passed, the newest backup's age and size, restore duration and next scheduled run. Never hostnames, paths, check details, SQL, query results or credentials. restorly dashboard preview prints exactly what is sent. The server's answer cannot change anything here. Sending needs the module on as well (Settings → Modules, off by default); nothing is sent with agent.network: offline.
On the dashboard page, Remove this site deletes a site's status (it comes back if the site keeps sending), sites silent for 90 days are deleted by themselves, and Delete the dashboard deletes the dashboard, every site's status and its alert settings at once; sites still sending are refused afterwards.
| Key | Default | Meaning |
|---|---|---|
dashboard | Turns sending on. The panel sets it up in Settings → General → Provider dashboard, module included. | |
dashboard.site | Required. The name the provider sees for this site, at most 80 characters. | |
dashboard.key_ref | Required. The site key shown on the provider's dashboard page (rdk_...), stored as a secret: restorly secret set provider-dashboard, then secret:/. | |
dashboard.url | agent.licence_url | Where the dashboard runs. |
Heartbeat ping (heartbeat, module monitor.heartbeat)
A dead-man's switch: Restorly pings a URL you choose every few minutes while the agent runs, so an external monitoring service (healthchecks.io, Uptime Kuma's push monitors, Cronitor, Better Stack) alerts you when the pings stop — the validation host or Restorly is down. Nothing about your data is sent. On by default, inert until a URL is set; every plan.
| Key | Default | Meaning |
|---|---|---|
heartbeat | Turns the heartbeat on. The panel sets it up in Settings → Notifications. | |
heartbeat.url | The monitoring endpoint, e.g. https:/. It usually carries a secret, so prefer url_ref. | |
heartbeat.url_ref | The endpoint stored as a secret: restorly secret set heartbeat, then secret:/. Set this or url, not both. | |
heartbeat. | 5m | How often to ping while the agent runs, between 1m and 1h. |
heartbeat.on_run | false | Also ping after each run: the URL when it passed or warned, URL/fail when it failed (the convention healthchecks.io and Cronitor read). Drills and rehearsals do not ping. |
mcp | What AI agents may do through the MCP server (module api.mcp, Team and up, AI agents). Without it they read and take actions that cannot lose data, within their token's scope. Set in Settings → General → AI agents (MCP). | |
mcp.full_access | false | Also the actions that skip a protection or delete something: Run anyway (admin tokens), deleting a kept restore, cleaning up a runner. |
mcp.inspect | false | Admin tokens may query kept failed restores (inspect_kept_restore). The rows are customer data and go to the AI agent and its model provider. |
Test it with restorly notify test (it pings the heartbeat alongside the notification channels) or the panel's test button. A failed ping is logged and never blocks a run. With agent.network: offline, no heartbeat is sent.
Sign-in with your identity provider (auth.oidc, module auth.oidc)
| Key | Default | Meaning |
|---|---|---|
auth | External sign-in. | |
auth.oidc | OpenID Connect sign-in (Keycloak, Entra ID, Google, ...): authorisation code flow with PKCE. Users are created on first sign-in; their role follows their groups at every sign-in. | |
auth.oidc.issuer | The provider's issuer URL (https). | |
auth. | Client ID registered at the provider. | |
auth. | Client secret (secret://); omit for a public client. | |
auth. | This panel's address ending in /signin/, registered at the provider. | |
auth.oidc.scopes | openid, profile, email | Scopes to request; add the one that releases groups if your provider needs it. |
auth. | preferred_username | Claim used as the user name (falls back to email). |
auth. | groups | Claim listing the user's groups. |
auth.oidc.roles | Groups per role, e.g. { admin: [restorly-admins], operator: [dba] }; the highest matching role wins. | |
auth. | viewer or operator for users in no mapped group; empty refuses them. | |
auth. | true | Admins must have signed in with MFA (the amr claim); otherwise sign-in is refused. |
auth.oidc.label | Sign in with your organisation | Text of the sign-in button. |