Skip to main content

07. Backup, restore and disaster recovery

What this covers / audience​

What to back up, the built-in scheduled backups, the ooa backup commands, how the vault key must be handled, how to restore and move One CommandCenter, and how to build, fail over to and fail back from a disaster recovery site. For backup administrators, DBAs and business continuity planners.

Contents​

  1. What must be protected
  2. Built-in backups
  3. ooa backup now, list and restore
  4. The vault key and backups
  5. Database-native backups
  6. Restore scenarios
  7. Moving One CommandCenter to new servers or a cloud
  8. Disaster recovery site
  9. Failover
  10. Failback
  11. Checking a site with ooa check
  12. Recovery objectives

1. What must be protected​

ItemWhereChangesProtect with
DatabaseSQL Server, PostgreSQL, or DATA\controlroom.mv.dbConstantlyBuilt-in backups and the database's own backups
Repository files and custom toolkitsDATA\repo-files or repo_files_folderWith uploadsBuilt-in backups (included), file backup or replication
ConfigurationDATA\config (ooa-db.properties, ooa-tls.properties, certificate files)RarelyBuilt-in backups (included), configuration management
Vault keyOOA_MASTER_KEY, a key store, or DATA\master.keyOnly when rotatedSeparately, in a secrets store, never with the backups
Audit checkpoints and archiveDATA\audit-checkpoints.log, DATA\audit-archiveHourly / with retentionCopy to write-once or log storage
Runner registrations%USERPROFILE%\.ooa-agent\agent.json on each runnerEvery 30 days (secret rotation)Not needed: re-register a lost runner
Licence fileStored in the databaseOn renewalKeep the .lic file too

2. Built-in backups​

Administration > Settings > Backups:

SettingRangeDefaultMeaning
backup_hours0 to 1680 (off)Make a backup when the newest is older than this many hours
backup_keep_days1 to 36507Remove older backups; the newest is always kept
backup_folderA folderDATA\backupsWhere backups go (fixed in a SaaS tenant)

A backup is one zip named ooa-backup-YYYYMMDD-HHMMSS.zip (UTC) with:

  • every table as JSON lines, read through JDBC, so the format is the same for H2, SQL Server and PostgreSQL;
  • the repository files and the configuration files of the data folder;
  • a manifest with format ooa-backup-1, the schema version, row counts and the vault key's fingerprint (not the key).

Vault values stay encrypted inside. The leader node makes the scheduled backups; Back up now makes one at once. Failures show on the settings page and in the audit trail. Point backup_folder at storage outside the server (a share, a mounted bucket) and give the service account write access.

3. ooa backup now, list and restore​

CommandEffect
ooa backup now [--data DIR]Make a backup into the backup folder; prints the file, rows and size, and a reminder about the key
ooa backup list [--data DIR]Backups in the folder, newest first, with time and size
ooa backup restore FILE [--replace] [--data DIR]Put a backup back. Stop One CommandCenter first.

All three accept --db-url URL --db-user NAME --db-password-env VAR (and --db-config FILE), which the container uses. Restore with a settings file signs in with the setup account when one is configured.

Restore checks, in order, and refuses with CR.BACKUP when:

  • the file is not an OOA backup or has an unknown format;
  • the backup comes from a newer release (schema newer than this release): restore it with that release;
  • the backup was made with another vault key (fingerprints differ): put that key in place first;
  • the target database already holds rows and --replace was not given.

It then loads every table, the repository files and the configuration files, and prints the row and table counts.

4. The vault key and backups​

  • A backup never contains the vault key. Without the key, its vault values, database and TLS passwords, two-step secrets and the install id (and therefore the licence binding) cannot be read.
  • Keep the key in a secrets store with its own backup and access control, apart from backup media.
  • Restoring needs the same key the backup was made with. After a key rotation, older backups need the old key: the rotation keeps the old key file as master.key.old-<time>; archive it with the backups it belongs to.

5. Database-native backups​

Use the DBA's normal plan as well:

  • SQL Server: full, differential and log backups (point-in-time restore).
  • PostgreSQL: base backups and WAL archiving (point-in-time recovery).

Back up DATA\config and the repository folder with them. A database restore brings back the vault values encrypted; the same vault key is still required.

6. Restore scenarios​

ScenarioSteps
Lost One CommandCenter server, database intactInstall the same version on a new server, same ooa-db.properties, same vault key, restore the repository folder (or point to the share), ooa check, start
Corrupted or lost databaseStop all nodes; restore the database natively to a point in time, or create an empty database and ooa backup restore FILE; ooa check; start
Accidental data changeRestore a database copy side by side and recover the rows, or restore a built-in backup into a separate test install to inspect
Container lostStart a new container with the same volume (or restore into a new one with backup restore) and the same key

After any restore: sign in, check Runners shows them online, run a test agent, and run Audit Trail > Verify integrity.

7. Moving One CommandCenter to new servers or a cloud​

  1. Plan the address. If the DNS name moves with the service, runners need nothing.
  2. Stop the old One CommandCenter and run ooa backup now. Note where the vault key is.
  3. Install the new one with the same vault key on an empty database.
  4. ooa backup restore FILE (in a container, see 03). Or use the database's own backup and restore between servers of the same engine, or ooa db copy from an evaluation.
  5. On each runner whose address changed: ooa agent move --url https://new-address [--ca FILE], then restart the runner. The move is refused, and nothing changes, if the new One CommandCenter does not know the runner (data not restored yet). The runner keeps its registration, schedules and seat.
  6. ooa check, sign in, confirm runners are online, run an agent, retire the old install.

The licence moves with the data when the install id comes along, which it does with the same vault key: a licence issued for that install id keeps working. Ask the vendor for a new licence only when you set up a new install instead of restoring (a new install has a new install id).

For a cloud target, build the new install as in 02, section 13 (Windows virtual machine) or 03 (Linux package or container).

7.1 Moving into a SaaS tenant​

A tenant of a SaaS region has its own vault key, so the key does not move. Use the move file instead, which carries every secret and encrypts it again with the tenant's key on the way in:

  1. Stop One CommandCenter. Put a long passphrase in an environment variable and run ooa tenant export --out acme.ooamove --password-env OOA_MOVE_PASS (add --with-history to take the run history).
  2. Send the file and the passphrase to the region's operator by different ways.
  3. The operator runs ooa region tenant import acme --file acme.ooamove --password-env ... and sends you the check report.
  4. On each runner run ooa agent move --url https://acme.REGION-DOMAIN, then restart it.

What moves, what stays behind and what to check afterwards: 09, section 12.1.

8. Disaster recovery site​

A second site takes over when the main one is lost. Keep three things in step:

WhatHowHow far behind
DatabaseSQL Server Always On with an asynchronous replica at the second site, or log shipping; PostgreSQL streaming replicationSeconds (asynchronous replica, streaming) up to the log backup interval (log shipping)
Repository files and toolkit jars (repo_files_folder)DFS Replication, storage replication, or a scheduled robocopy /MIRThe copy interval
Vault keyThe same OOA_MASTER_KEY (or key source) at both sitesNever changes except on rotation

Second-site preparation:

  • Install the same product version on the standby nodes, with the same ooa-db.properties pointing at the database listener or DNS name (not a single server) and the same TLS settings.
  • Leave the standby nodes stopped: the replica is read-only, and only one site may write.
  • People and runners use one DNS name (for example ooa.company.com) that you can point at either site, with a low time-to-live.
  • Install the certificate for that name at both sites.
  • Rehearse at least twice a year.

9. Failover​

  1. Fail the database over to the second site (or restore the latest backup there) so it can be written.
  2. Make the second site's copy of the repository folder the live one (and point repo_files_folder at it if the path differs; that setting is in the database).
  3. Run ooa dr check --data DIR on a second-site node (and ooa check for the computer itself). It shows, as PASS, WARN or FAIL with what to do: the database here is writable (no longer a read-only replica), the schema is this release's, the vault key decrypts the stored values, which node still holds the leader lease and which nodes are running, every repository file the database lists is in this site's folder, the newest backup, and the address. Fix every FAIL first; ooa dr status shows the same without the exit code.
  4. Run ooa dr promote --data DIR --public-url https://ooa-dr.company.com --yes (added 14 Nov 2026). It refuses while a check fails; otherwise it ends the failed site's leader lease (so a node here leads as soon as it starts instead of waiting for the lease to run out), sets the public address if given, and writes a record to DIR\dr\promote-<time>.txt. Without --yes it only shows the checks.
  5. Start the second-site nodes; point the DNS name or the load balancer at them.
  6. Runners reconnect through the DNS name by themselves. A runner registered with a server's own name needs ooa agent move --url https://ooa.company.com.
  7. What happens to work:
    • a run that was going finishes if its runner reaches the second site; otherwise it fails with AGENT.LOST once its runner has not reported for two minutes;
    • serverless runs fail after their time limit;
    • queued runs, schedules and work queues carry on;
    • with an asynchronous replica, the last seconds of changes before the loss may be missing.

10. Failback​

  1. Re-establish replication from the second site back to the main site (database and repository folder).
  2. In a planned window: stop the second-site nodes, fail the database back, make the main site's folder live.
  3. ooa dr check and ooa dr promote --yes on a main-site node, start the main nodes, point the DNS name back.
  4. Re-protect: the second site becomes the standby again.

If the replica cannot be used, restore the latest built-in backup with ooa backup restore (same key) at the site that will run.

11. Checking a site with ooa check​

Run ooa check --data DIR on the node you are about to start. Lines that matter for recovery:

LineFAIL means
DatabaseCannot connect: listener, DNS, firewall or credentials
Vault key and databaseThe key does not open the stored credentials: use the main site's key
Repository filesN of M files missing in the folder: copy the folder or point repo_files_folder at the shared copy
HTTPS certificateExpired or unreadable on this site

The exit code is the number of FAIL lines, so it can gate an automated runbook.

12. Recovery objectives​

DesignTypical RPOTypical RTO
Built-in backups only (backup_hours=24)Up to 24 hoursHours (new server, restore)
Database log backups every 15 minutes, file backupsAbout 15 minutes1 to 2 hours
Asynchronous replica, replicated folder, standby nodesSeconds to minutes15 to 30 minutes, mostly DNS and checks
Synchronous replica in one site plus several nodesNear zero for a node or database failureUnder a minute (lease takeover)

These are planning figures for your own runbooks, not guarantees.