Open abeluck opened 4 years ago
This sounds like something that would work well for most people, so I think we should do it.
And then we can provide some samples for how to pull these backups using rsync
, etc.
It would be nice to ensure safety for most deployments.
For larger deployments or people who do their backups in a more specialized way, it could always be be turned off.
I imagine many users would like to have automatic backups of the database available.
Ideally the postgres role could also provide a script and cron job that performs the backup. It could be controlled with a few simple variables, here are some suggested defaults:
Then when combined with a backup tool like borg, tarsnap, or even rsync, it would be dead simple to ensure the matrix deployment is backed up.
Obviously large deployments might have perf issues with daily backups, but I suspect they should be/are using external an postgres server anyways.