Configuration reference

Restorly reads one declarative YAML file, by default /etc/restorly/config.yaml. 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:

  1. the environment variable RESTORLY_SECRET_<NAME> (upper case; - and . become _);
  2. the encrypted store (restorly secret set <name>, encrypted with the master key);
  3. the file <agent.secrets_dir>/<name> (mode 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.protected_regular is 2 (Debian 13, Ubuntu 26.04), an editor run as root may not write a file another user owns in that directory.

agent

FieldDefaultDescription
agentHost-wide settings.
agent.modevalidatevalidate, or backup+validate (needs the backup module).
agent.max_parallel_runs1Validations 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.max_parallel on top.
agent.update_policyapproveauto, 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.timer. 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.watch_interval5mHow often the locations of databases with schedule: on_new_backup are listed (1m–24h). A listing reads names and sizes only.
agent.missed_run_grace1hHow 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.run_log_retention30dHow 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_urlhttps://licence.restorly.euThe 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_urlnoneThe panel's address as people open it, e.g. https://restorly.example.lan:8443. Notification emails link to the run and the database there; without it they have no links. Never contacted by the agent.
agent.update_urlhttps://get.restorly.eu/releasesWhere signed releases and the update manifest (<url>/stable/latest.json) 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.networkonlineonline, 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/restorlyReports, keys and state. Absolute path.
agent.work_dir<state_dir>/workScratch space for restores. Needs room for the largest restore (see restorly preflight).
agent.secrets_dir/etc/restorly/secretsDirectory of file-backed secrets (the encrypted store is preferred).
agent.master_key_file/etc/restorly/master.keyMaster 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.listen127.0.0.1:8420host: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_certPEM certificate (chain) for the listener. Absolute path.
agent.tls_keyPEM private key for tls_cert (mode 0600, readable by the service user). Absolute path.
agent.tls_self_signedfalseServe a self-signed certificate: ECDSA P-256, valid two years, renewed 30 days before expiry, kept in <state_dir>/tls/, 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.dockerContainer engine used for restore sandboxes.
agent.docker.hostDOCKER_HOST, else Docker's socket, else Podman'sDocker API endpoint, e.g. unix:///var/run/docker.sock. Without one, Restorly uses Docker's socket where it exists, else Podman's system socket /run/podman/podman.sock, else the user's own.
agent.docker.pull_policyif-missingif-missing, always, or never (air-gapped hosts with preloaded images).
agent.docker.registryDocker HubImage prefix for a mirror, e.g. registry.internal/library.
agent.docker.refresh_images7dHow 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.keep_failed_restores0s (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.default_retentionnot setRetention 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.default_retention.daily0Days to keep one backup of.
agent.default_retention.weekly0ISO weeks to keep one backup of.
agent.default_retention.monthly0Months to keep one backup of.
agent.default_retention.keep_passed3How 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.

FieldDescription
modulesAdmin choices. Anything not mentioned uses the module's default.
modules.enableModule IDs or globs to enable, e.g. [backup, notify.*].
modules.disableModule 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.

FieldTypesDescription
locationsList of backup locations.
sourcesDeprecated old name of locations: still read, with a warning; restorly never writes it. Rename the key.
locations[].idallUnique ID (lowercase letters, digits, -, _).
locations[].typealllocal, s3, sftp or smb. Each needs its module (source.<type>). NFS: mount it on the host and use local.
locations[].roleallsource (default: Restorly reads backups here), destination (backup mode writes here), or both.
locations[].timeoutallPer-operation network timeout. Default 30s.
locations[].naming_defaultallPattern for the databases on this location that set no pattern of their own, e.g. {host}/{db}/{db}_{YYYY}{MM}{DD}_{hh}{mm}.sql.gz. Name tokens take each database's vars; a directory part is added to the database's path.
locations[].directory_rulesallPatterns for databases under particular directories; they win over naming_default. The most specific rule (longest path) that contains the database's path applies.
locations[].directory_rules[].pathallDirectory inside the location the rule covers, e.g. legacy-client/.
locations[].directory_rules[].patternallThe pattern for databases under that directory, e.g. backup-{db}-{DD}.{MM}.{YYYY}.sql.
locations[].offsitealltrue 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[].pathlocal, sftp, smblocal: 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[].providers3Storage 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[].account_ids3 (r2)Cloudflare account ID (32 hex characters).
locations[].jurisdictions3 (r2)eu or fedramp for buckets created in a Cloudflare jurisdiction (they have their own endpoint).
locations[].endpoints3https:// URL of an S3-compatible service. Overrides the provider preset. Plain http:// is allowed with a warning.
locations[].buckets3Bucket name. Required.
locations[].regions3Region. Default us-east-1; auto for r2 and gcs.
locations[].path_styles3Force path-style addressing (most self-hosted S3). Default: detected from the endpoint.
locations[].ca_certs3PEM file of a private CA to trust. TLS verification is always on.
locations[].access_keys3Access key ID (not secret). Required.
locations[].hostsftp, smbServer host name or IP. Required.
locations[].portsftp, smbDefault 22 (SFTP) / 445 (SMB).
locations[].usersftp, smbLogin user. Required. Use a read-only account.
locations[].sharesmbShare name. Required.
locations[].domainsmbNTLM domain / workgroup, if any.
locations[].host_keysftpRequired 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[].credentials_refs3, sftp, smbS3 secret key, SFTP password, or SMB password.
locations[].private_key_refsftpYour 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.

FieldDefaultDescription
targetsList of targets.
targets[].mssqlthe top-level mssqlThe same settings for one database, e.g. a client whose own SQL Server licence covers their restores.
targets[].mssql.accept_eulaAs mssql.accept_eula.
targets[].mssql.editionexpressAs mssql.edition.
targets[].mssql.licensedAs mssql.licensed.
targets[].mssql.product_key_refAs mssql.product_key_ref.
targets[].idUnique ID. Appears in reports, logs and container labels.
targets[].enginemariadb, 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[].locationID of the location holding the backups.
targets[].sourceDeprecated old name of location: still read, with a warning.
targets[].pathDirectory inside the location that holds the backups. Empty (or left out) means the location's own directory.
targets[].patternFile-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}.sql.gz. 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)\.(?P<MM>\d\d)\.(?P<YYYY>\d{4})\.sql\.gz; 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[].varsValues 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[].file_in_archiveThe 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}.sql.gz. 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[].pgbackrestA 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[].pgbackrest.stanzaRequired. The stanza whose newest backup is validated (pgbackrest info lists them).
targets[].pgbackrest.cipher_pass_refAn 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[].barmanA 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[].barman.serverRequired. Barman's server name (barman list-servers); with CloudNativePG, the cluster's serverName, by default the cluster's name.
targets[].chainA 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>/<database>), with the backups in FULL, DIFF and LOG (without pattern, the full backups' default is FULL/*_FULL_{YYYY}{MM}{DD}_{hh}{mm}{ss}.bak; 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[].chain.diffDIFF/*_DIFF_{YYYY}{MM}{DD}_{hh}{mm}{ss}.bakThe 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[].chain.logLOG/*_LOG_{YYYY}{MM}{DD}_{hh}{mm}{ss}.trnThe 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[].chain.log_max_age2hThe 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[].formatlogicalpgbackrest for a pgBackRest repository (see targets[].pgbackrest); 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[].timezoneUTCIANA zone of the timestamps in file names, e.g. Europe/Sofia.
targets[].max_age26hThe newest backup must be younger than this.
targets[].max_run_timetwice the longest of its last 10 runs, at least 30mHow 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[].objectivesOptional 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[].objectives.rpoRecovery 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[].objectives.rtoRestore 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[].imageversion-matchedOverride 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[].scheduleCron 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.watch_interval; 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[].settle10mHow 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[].databasesall in the dumpLimit 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[].clientThe clients[] entry this database belongs to (module multisite): the panel's client switcher and per-client reports use it.
targets[].examplefalseAn 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[].tagsUp 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[].runner_selectorany runnerLabels 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[].copiesOther 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[].copies[].locationID of the location holding the copy. The runner that validates the database must reach it too.
targets[].copies[].pathDirectory of the copy inside that location. Must differ from the database's own directory.
targets[].copies[].patternthe database's patternFile-name pattern of the copies, e.g. with an extra .age when the copy is encrypted.
targets[].copies[].max_agethe database's max_ageThe newest copy must be younger than this; copies made later in the day need more.
targets[].stagingSanitised 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[].staging.locationA location with role destination or both.
targets[].staging.pathDirectory for the staging copies; it must differ from the database's backup directory.
targets[].staging.patternFile name with date tokens, e.g. shop-staging-{YYYY}{MM}{DD}.sql.zst. The extension sets the format and compression as in backup mode (PostgreSQL: .dump for pg_dump's custom format); .age encrypts to encryption.recipients.
targets[].staging.keep3Staging copies kept. Only copies Restorly recorded writing are ever deleted.
targets[].staging.rulesMasking 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[].staging.rules[].databasethe only restored databaseDatabase of the table.
targets[].staging.rules[].tableTable; PostgreSQL schema.table (default schema public).
targets[].staging.rules[].columnColumn to mask.
targets[].staging.rules[].maskemail (hash@example.invalid, unique stays unique), name ("Person " + hash), phone (digits from a hash), hash (hex hash, the original's length), null, or redact ("REDACTED").
targets[].pitrPoint-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[].pitr.locationthe database's locationLocation of the WAL archive.
targets[].pitr.pathDirectory 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.identity_ref).
targets[].pitr.max_age1hThe 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[].keep_failed_restoreagent.keep_failed_restoresThis 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[].restore_diskRestorly's reckoningThe 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_rehearsalUpgrade 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[].upgrade_rehearsal.schedule0 5 * * 0When it runs (cron, host time zone): Sundays at 05:00. Rehearse now on the database's page runs it at once.
targets[].upgrade_rehearsal.imagethe release Restorly testsThe next version's image, e.g. mariadb:13.0 from your own registry. Needed when the database restores with its own image.
targets[].live_compareOptional read-only connection to the production server this backup comes from, to compare row counts table by table with the restored copy (module check.live_compare, 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[].live_compare.hostProduction host.
targets[].live_compare.port3306 / 5432Production port.
targets[].live_compare.userA read-only user (SELECT only). Restorly warns if given a superuser.
targets[].live_compare.databaseDatabase to compare. Default: those in the dump.
targets[].live_compare.credentials_refPassword reference.
targets[].live_compare.tlspreferprefer (TLS when the server offers it), require (fail without TLS), or disable (warned: password and counts in clear).
targets[].live_compare.countsexactexact: 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[].live_compare.tolerance_pct10 (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[].live_compare.timeout60sLimit per statement on production; a table that exceeds it is reported as not compared.
targets[].checksWhich checks run.
targets[].checks.builtinallBuilt-in checks: integrity (level 1), restore (level 2), check_tables, row_count_compare, schema_drift, empty_tables, table_checksums (level 3).
targets[].checks.critical_tablesTables that must never be empty (fails when empty).
targets[].checks.static_tablesReference tables whose content must not change (database.table, or database.schema.table on PostgreSQL). With table_checksums, a changed fingerprint while the schema is unchanged fails the run.
targets[].checks.checksum_sample5Tables 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[].checks.customCustom 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[].checks.custom[].idUnique within the target.
targets[].checks.custom[].databasefirst in dumpDatabase to run against.
targets[].checks.custom[].sqlThe 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[].checks.custom[].expectTyped expectation on the first column of the first row, or on the row count.
targets[].checks.custom[].expect.op=, !=, <, <=, >, >=, between, regex, not_null, or rows>=.
targets[].checks.custom[].expect.valueNumber, string or date for comparisons; [min, max] for between; a pattern for regex; a whole number for rows>=; none for not_null.
targets[].checks.custom[].timeout60sStatement timeout (1s–1h).
targets[].checks.custom[].severityfailfail or warn when the expectation is not met.
targets[].thresholdsTrend thresholds (whole percentages) that produce warnings.
targets[].thresholds.size_shrink_pct20Backup smaller than the previous one by more than this.
targets[].thresholds.size_growth_pct300Backup larger than the previous one by more than this.
targets[].thresholds.restore_slower_pct50Restore time up by more than this (RTO trend).
targets[].thresholds.row_count_drop_pct10Any table's row count down by more than this.
targets[].encryptionEncrypted 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[].encryption.formatageHow 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[].encryption.recipientsage public keys (age1...) that new backups are encrypted to (format age, backup mode). Restorly never needs the private key to write.
targets[].encryption.identity_refFormat 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[].encryption.key_refFormat 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[].encryption.password_refSecret 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[].encryption.certificate_refFormat mssql: secret holding the certificate file (BACKUP CERTIFICATE name TO FILE = '...'), base64-encoded (the panel stores an upload so).
targets[].encryption.private_key_refFormat mssql: secret holding the certificate's private key file (WITH PRIVATE KEY (FILE = '...', ENCRYPTION BY PASSWORD = '...')), base64-encoded; its password is password_ref.
targets[].encryption.opensslFormat 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[].encryption.openssl.cipheraes-256-cbc, aes-192-cbc or aes-128-cbc.
targets[].encryption.openssl.kdfpbkdf2 (openssl enc -pbkdf2) or legacy (without it; OpenSSL before 1.1.1, or still without -pbkdf2).
targets[].encryption.openssl.digestsha256, sha512, sha1 or md5 (openssl enc -md; OpenSSL before 1.1.0 used md5).
targets[].encryption.openssl.iterations10000openssl enc -iter, with kdf: pbkdf2.
targets[].backupBackup 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[].backup.fromThe production server to back up.
targets[].backup.from.hostHost name or IP.
targets[].backup.from.port3306 / 5432 / 27017 / 1433Port (MySQL and MariaDB, PostgreSQL, MongoDB, SQL Server).
targets[].backup.from.userBackup 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[].backup.from.credentials_refPassword reference.
targets[].backup.from.tlspreferprefer, require or disable (warned).
targets[].backup.from.databasesDatabases to back up (exactly one for PostgreSQL, MongoDB and SQL Server).
targets[].backup.from.server_dirSQL Server only, required: the directory BACKUP DATABASE writes to, as SQL Server sees it (/var/opt/mssql/backup, 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[].backup.from.host_dirSQL 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[].backup.from.datadirMariaDB 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[].backup.scheduleWhen to take backups (cron, host time zone). Without it, backups are taken only on demand (restorly backup).
targets[].backup.validate_aftertrueValidate each backup right after taking it.
targets[].backup.timeout6hLimit for one dump.
targets[].backup.retentionagent.default_retention, else keep allGrandfather-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[].backup.retention.daily0Days to keep one backup of.
targets[].backup.retention.weekly0ISO weeks to keep one backup of.
targets[].backup.retention.monthly0Months to keep one backup of.
targets[].backup.retention.keep_passed3How many of the newest backups that passed validation are always kept, whatever the rest of the policy says (at least 1).
targets[].resourcesRestore sandbox limits.
targets[].resources.cpusengine defaultCPU limit, e.g. 2 or 1.5.
targets[].resources.memoryengine defaultMemory limit, at least 256MiB.

notifications

Each entry is a channel (module notify.<type>). 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.

FieldDescription
notificationsList of channels.
notifications[].typeemail, slack, teams or webhook (modules notify.<type>).
notifications[].toEmail recipients (email only).
notifications[].credentials_refWebhook URL (Slack incoming webhook, Teams Workflows webhook, or your endpoint). Webhook URLs are secrets.
notifications[].formatticket (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[].clientsLimit 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[].onEvents: 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.templates.nis2, 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[].detailssummaryHow 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[].summary_scheduleWhen 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.

FieldDefaultDescription
smtpMail server settings.
smtp.hostServer name.
smtp.port587 (465 for implicit)Server port.
smtp.tlsstarttlsstarttls (required, never falls back to plain text), implicit (TLS from the first byte), or none (loopback or unauthenticated relays only).
smtp.fromSender address.
smtp.userLogin name; required with credentials_ref.
smtp.credentials_refThe SMTP password (secret://name). Omit for an unauthenticated relay.
smtp.ca_certsystem rootsPEM file of a private CA that signed the server certificate.

Hub and runners

KeyDefaultMeaning
hubThis host accepts remote runners. Needs module runners.remote.
hub.listenAddress runners dial, mutual TLS with the hub's internal CA, e.g. 0.0.0.0:8443. Separate from the panel listener.
hub.advertiseThe https:// URL runners use to reach the hub; it goes into the join command.
hub.labelsLabels of the built-in runner hub-local, e.g. { site: sofia, vlan: db }.
runnerSettings of this host when it runs as a remote runner (restorly runner). The hub address and keys come from restorly runner join.
runner.labelsLabels this runner offers, matched by targets[].runner_selector. 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.max_parallel1Jobs this runner runs at the same time. They add to the hub's own agent.max_parallel_runs: 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.dedicatedfalseThe 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)

KeyDefaultMeaning
clientsCustomers 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[].idShort ID, e.g. online-shop.
clients[].nameThe 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
FieldDefaultDescription
mssqlHow 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_eulafalsetrue 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.editionexpressexpress (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.licensedfalseRequired 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.product_key_refOptional 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.

KeyDefaultMeaning
brandingTurns co-branding on.
branding.nameRequired. The provider's name: "Prepared by <name>". At most 80 characters.
branding.contactShown after the name, e.g. support@acme-it.example or a phone number.
branding.logoAbsolute 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.

KeyDefaultMeaning
dashboardTurns sending on. The panel sets it up in Settings → General → Provider dashboard, module included.
dashboard.siteRequired. The name the provider sees for this site, at most 80 characters.
dashboard.key_refRequired. The site key shown on the provider's dashboard page (rdk_...), stored as a secret: restorly secret set provider-dashboard, then secret://provider-dashboard.
dashboard.urlagent.licence_urlWhere 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.

KeyDefaultMeaning
heartbeatTurns the heartbeat on. The panel sets it up in Settings → Notifications.
heartbeat.urlThe monitoring endpoint, e.g. https://hc-ping.com/your-uuid. It usually carries a secret, so prefer url_ref.
heartbeat.url_refThe endpoint stored as a secret: restorly secret set heartbeat, then secret://heartbeat. Set this or url, not both.
heartbeat.interval5mHow often to ping while the agent runs, between 1m and 1h.
heartbeat.on_runfalseAlso 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.
mcpWhat 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_accessfalseAlso the actions that skip a protection or delete something: Run anyway (admin tokens), deleting a kept restore, cleaning up a runner.
mcp.inspectfalseAdmin 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)

KeyDefaultMeaning
authExternal sign-in.
auth.oidcOpenID 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.issuerThe provider's issuer URL (https).
auth.oidc.client_idClient ID registered at the provider.
auth.oidc.client_secret_refClient secret (secret://); omit for a public client.
auth.oidc.redirect_urlThis panel's address ending in /signin/oidc/callback, registered at the provider.
auth.oidc.scopesopenid, profile, emailScopes to request; add the one that releases groups if your provider needs it.
auth.oidc.username_claimpreferred_usernameClaim used as the user name (falls back to email).
auth.oidc.groups_claimgroupsClaim listing the user's groups.
auth.oidc.rolesGroups per role, e.g. { admin: [restorly-admins], operator: [dba] }; the highest matching role wins.
auth.oidc.default_roleviewer or operator for users in no mapped group; empty refuses them.
auth.oidc.admin_mfatrueAdmins must have signed in with MFA (the amr claim); otherwise sign-in is refused.
auth.oidc.labelSign in with your organisationText of the sign-in button.