Backups
A backup is an archive of a project’s named volumes: the data your services keep. Images and the container filesystem aren’t included (they’re rebuilt from your compose file).
Automatic backups
Section titled “Automatic backups”Every project with at least one volume is backed up once a day. Three are kept:
- the latest (daily);
- one at least a week old;
- one at least two weeks old.
They’re what failover restores when a project has to move to another server. Projects without volumes are skipped (there’s nothing in them to save).
Download a backup
Section titled “Download a backup”Project page → Backups → Download backup. It’s prepared in the background; when it’s ready, a download link appears, valid for 48 hours. The archive is a .tar holding one <volume>.tar per volume: unpack it, then unpack the volume you want (tar -xf backup.tar && tar -xf pgdata.tar -C ./pgdata).
Also via the API: POST /projects/{id}/backups, then GET /projects/{id}/backups/{backup_id} until it has a download_url.
Consistency
Section titled “Consistency”Backups are read from a snapshot of each service’s disk, so a running database is captured as of one instant (as if the power had gone off then). Databases recover from that on start, like after a crash. For an application-level dump on top (pg_dump, mysqldump), run it from your own scheduled job and store the result where you like.
Restoring
Section titled “Restoring”- Failover restores the latest automatic backup by itself.
- Unparking a project restores the backup made when it was parked.
- There’s no “restore this backup over my running app” button yet. To restore a downloaded backup yourself, load its files into the service (for example through your database’s import tool).
Deleting a project
Section titled “Deleting a project”Deleting a project deletes its backups too. Download one first if you want to keep the data.