Waldur keeps state in 2 components:
- Database - main persistency layer.
- Message queue - contains transient data mostly about scheduled jobs and cache.
Of these, only database needs to be backed up.
A typical approach to a backup is:
Create a database dump, e.g.
$ docker exec -t waldur-db pg_dump -U waldur waldur | gzip -9 > postgresql-backup/waldur-$(date +'%Y%m%dT%H%M%S').sql.gz
Copy backup to a remote location.
We suggest to make sure that backups are running regularly, e.g. using cron.