Skip to content

Commit 205266b

Browse files
committed
feat: Keep last 5 snapshots in restic retention policy
1 parent 9dece75 commit 205266b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Docker container for backing up service data to Backblaze B2 using rsync and res
2828
```yaml
2929
services:
3030
backup-myservice:
31-
image: ghcr.io/rogueoneecho/backup:latest
31+
image: ghcr.io/rogueoneecho/backup
3232
userns_mode: host
3333
environment:
3434
NAME: myservice

src/backup

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ restic-forget () {
333333
start-timer
334334
if restic forget \
335335
--repo "${RESTIC_REPO}" \
336+
--keep-last 5 \
336337
--keep-daily 7 \
337338
--keep-weekly 4 \
338339
--keep-monthly 12 \

0 commit comments

Comments
 (0)