Backups & Restore
Run, schedule, download, and restore database backups, with optional offsite copies to S3.
Prefer to watch? Part 2 of the video walkthrough (1:44) covers this page.
Every database engine DeployOS supports (Postgres, MySQL, MongoDB, Redis, MSSQL) can be backed up and restored from the Backups page.
New databases are backed up from the start. When you create a database in DeployOS it gets a nightly backup at 02:00 server time, kept for 7 days on the server, without you setting anything. Change the time or how long backups are kept on the Backups page. Databases created before this, or adopted from an existing server, keep whatever schedule they had; the dashboard shows a warning with a one-click fix when any database has none.
The Backups page
The Backups page has three tabs:
- Databases: one compact card per database showing how many local backups it has and its schedule, with Back up now and Schedule & backups buttons. Open Schedule & backups to set the schedule, see and download files, restore, and see offsite snapshots. The list is paginated and searchable once you have more than five.
- Offsite storage: where encrypted copies are pushed (S3-compatible, or Drime).
- Server config: back up and restore DeployOS's own data (servers, apps, secrets) so a new install can pick up where this one left off.
Running a backup manually
Click Back up now on a database to open a live view of the run, dumping the database, pushing offsite if configured, and cleaning up old local copies, with real output streaming as each step happens. DeployOS runs the correct native dump tool for that engine (pg_dump, mysqldump, mongodump, a Redis SAVE, or sqlcmd BACKUP for MSSQL) and stores the result on the server under /opt/deployos/backups/{name}.
Scheduling backups
Set a cron schedule and retention count per database, the Daily 02:00 preset covers the common case. Older backups beyond your retention count are pruned automatically.
Backup schedule card with cron picker and retention field
Offsite backups (S3)
Configure an S3-compatible offsite target (bucket, endpoint, and keys, keys are stored in your OS keychain) from the Backups page. Once set, both manual and scheduled backups push a copy offsite via restic after the local dump completes, so a backup isn't only as safe as the server it was taken on.
If a push fails because restic or rclone isn't installed on the server, DeployOS installs them and retries automatically, no need to SSH in by hand. A "Fix rclone/restic not found" action is also available on demand if you'd rather trigger that install yourself. Either way, your local backup is unaffected if the offsite push itself fails for some other reason (bad credentials, network, etc.), only the offsite copy is at risk, never the backup you already have.
Restoring
Pick a backup from the list and click Restore: you'll be asked to confirm, since this overwrites the target database's current data. Restore works against the same server the backup was taken on, or a different one if you're recovering onto a replacement machine.
Downloading backups locally
Back up & download DBs, from a server's quick-actions menu, pulls the newest backup of every database on that server down to ~/Downloads/DeployOS-backups/ on your own machine. While DeployOS is open, this also runs automatically in the background every few hours, so a reasonably recent local copy always exists without you remembering to grab one.
Tip: offsite S3 push and the local Downloads mirror are two separate safety nets; use both if the data genuinely matters. A backup that only lives on the server it's protecting doesn't survive that server dying.
Backing up more than one database at once
Everything above is per-database. To back up an entire server, every app's data, not just one database, see Server Snapshots & Wipe, which reuses this same S3 offsite target.