Backups
Backups protect database data from accidents and bad deploys.
Create a backup
From the CLI:
dock db backups create productionFrom the dashboard, open the database and use the Backups tab.
List backups
dock db backups ls productionBackup states
| State | Meaning |
|---|---|
pending | Backup was requested |
running | Backup is being created |
completed | Backup is ready |
failed | Backup did not finish |
When to create one
- before migrations
- before destructive imports
- before deleting large data
- before changing database settings