lobaro / restic-backup-docker

A docker container to automate backups with restic
Apache License 2.0
331 stars 114 forks source link

run restic prune #3

Closed niondir closed 7 years ago

niondir commented 7 years ago

Snapshots get deleted already but from time to time you might want to call prune automatically.

niondir commented 7 years ago

Whenever restic forget is executed, restic prune runs afterwards. In addition I added logging for the duration of the cron task. This way one can ensure, that the backup interval is not to short for the job to run.

In addition there is a new file "/var/log/restic-error-last.log" which contains the content of the last failed backup.