allow to adjust borgs retention policy

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-04-27 16:01:16 +02:00
parent 1118ba6764
commit 65a9fe4c95
9 changed files with 24 additions and 8 deletions

View file

@ -334,10 +334,11 @@ Daily backups can get enabled after the initial backup is done. Enabling this al
Be aware that this solution does not back up files and folders that are mounted into Nextcloud using the external storage app - but you can add further Docker volumes and host paths that you want to back up after the initial backup is done.
Regarding backup retention, see [this documentation](https://github.com/nextcloud/all-in-one/discussions/1675).
---
#### How to adjust borgs retention policy?
The built-in borg-based backup solution has by default a retention policy of `--keep-within=7d --keep-weekly=4 --keep-monthly=6`. See https://borgbackup.readthedocs.io/en/stable/usage/prune.html for what these values mean. You can adjust the upload limit by providing `--env BORG_RETENTION_POLICY="--keep-within=7d --keep-weekly=4 --keep-monthly=6"` to the docker run command of the mastercontainer (but before the last line `nextcloud/all-in-one:latest`! If it was started already, you will need to stop the mastercontainer, remove it (no data will be lost) and recreate it using the docker run command that you initially used) and customize the value to your fitting. ⚠️ Please make sure that this value is valid, otherwise backup pruning will bug out!
#### Are remote borg backups supported?
Not directly but you have multiple options to achieve this: