runway service backup manages backups for your services. Backups are available on Scale, Scale+, Pro, and Pro+ plans.
List all available backups for a service:
runway service backup ls <name>
| Argument | Description |
|---|---|
<name> |
Name of the service |
Runway automatically creates daily backups and retains them for 2 weeks.
Create an on-demand backup:
runway service backup create <name>
| Argument | Description |
|---|---|
<name> |
Name of the service |
Use this when you need a backup outside the regular daily schedule.
Download a backup to your local machine:
runway service backup download <name> <backup>
| Argument | Description |
|---|---|
<name> |
Name of the service |
<backup> |
Name of the backup |
The download is a snappy-compressed tarball containing the PostgreSQL configuration and data directory. Use this to:
To restore from a backup, create a new service using the --service flag:
runway service create db-new \
--plan=dev-launch \
--service=db-existing
See runway service create for details.