Backups and your data
Databases and app volumes live on persistent volumes that survive restarts, redeploys and new versions.
Ways to keep a copy
Section titled “Ways to keep a copy”- A nightly dump to object storage. A cron job linked to your database and a bucket: see the example in Cron jobs.
- A dump to your laptop with external access:
pg_dump "$URL" > backup.sql. - App files (uploads, SQLite): share the app’s data with a backup job: see Sharing an app’s data.
- Your setup as code:
zc export -o zedcloud.yaml(secret values are left out). - Your account data: Profile → Export my data.
What deleting does
Section titled “What deleting does”| You delete | What happens to the data |
|---|---|
| A database | Its volume is deleted. The dialog warns you. |
| An app with persistent storage | The volume is kept. |
| A Linux box | /workspace is kept. |
| Object storage | The key stops working at once; files are purged after 7 days. |
| A Valkey cache | It held data in memory only. |