Isabl Docs
Search…
Maintenance
🧼 Some utilities and good practices to keep your isabl instance data safe

Database backups

The cookiecutter-api comes with some handy utilities to manage postgres backups, that you can inspect in your project code directory (compose/production/postgres/maintenance):
1. To create a backup:
docker-compose -f <environment>.yml (exec |run --rm) postgres backup
2. To list/view current backups:
docker-compose -f <environment>.yml (exec |run --rm) postgres backups
3. To restore a backup:
docker-compose -f <environment>.yml (exec |run --rm) postgres restore
It's a good practice to run your backup script regularly. For example, adding it to a cron job that runs periodically (i.e. every month, or every week)
Copy link