Skip to Content
Data

Backups and restore

Back up an app or a database on a schedule, to S3 or another server, and restore it.

Back up an app or a database on a schedule, to an S3 bucket or to a folder on one of your servers. Everything lives under Storage, and on the Backups tab of each app and database.

  • An app backup holds its volumes and files, plus its compose file and variables. It pauses the app for a second at most.
  • A database backup is a dump of that database.

Add a destination

Open Destinations

Storage -> Destinations -> Add Destination, then pick the type and give it a Name.

Fill it in

A folder on any of your servers. Leave Advanced -> Folder empty and Deplo manages it.

Test it

Test connection in the destination's menu writes and deletes a small file. If it fails, Connection log in the same menu shows each step.

Storage -> Destinations: an S3 destination with its bucket, endpoint and the recovery key notice

Save the recovery key

Backups are encrypted. In the destination's menu, click Download recovery key and keep the file outside Deplo. If you lose the machine Deplo runs on, it is the only way to open your backups:

age -d -i deplo-recovery-key.txt backup.tar.gz.age > backup.tar.gz

Schedule a backup

Pick what to back up

Storage -> Backups -> New Backup, then one App or one Database. From the Backups tab of an app or a database, use Back up -> New schedule.

Pick the destination and how often

Every 15 minutes at most, in the Timezone you pick.

Set Keep

How many recent backups to keep: 7 by default, up to 365.

Storage -> Backups: every schedule, its target, retention and last run

Back up -> Back up now takes one backup right away.

Restore

Every successful backup is a restore point, under Restore points on the Backups tab.

Pick the restore point

Open its menu and click Restore.

Confirm

Type the app's or database's name. Deplo replaces the current data with the backup.

One app's Backups tab: schedules and restore points

A restore cannot be undone

The current data is replaced. Take a backup first if you may need it.

  • Download in the same menu saves the backup, decrypted, to your computer.
  • Back up -> Restore from file restores a .gz, .tgz or .age file. For an .age file, paste the recovery key.

Good to know

  • An app backup does not include its databases. Schedule each database too.
  • Deleting an app or a database deletes its backups. Deleting only a schedule keeps them.
  • Keep one copy off the server. A destination on the same server is lost with it.

Something wrong? See Data, storage and backups.

Did this page help you?

On this page