Update retention strategy

This commit is contained in:
Thibaud Gasser 2021-02-18 19:37:04 +01:00
parent f1cd7be4b4
commit 10e3bc1956

View File

@ -6,7 +6,7 @@ Type=oneshot
Environment=BORG_HOSTNAME_IS_UNIQUE=yes Environment=BORG_HOSTNAME_IS_UNIQUE=yes
Nice=19 Nice=19
ExecStart=/usr/bin/borg create --list --stats --filter AME --exclude-from=${EXCLUDE_LIST} ::{now} / ExecStart=/usr/bin/borg create --list --stats --filter AME --exclude-from=${EXCLUDE_LIST} ::{now} /
ExecStartPost=/usr/bin/borg prune -v --list --keep-daily=7 --keep-weekly=4 --keep-monthly=10 --keep-within 2d --stats :: ExecStartPost=/usr/bin/borg prune -v --list --keep-within=2d --keep-daily=7 --keep-weekly=4 --keep-monthly=10 --keep-yearly=3 --stats ::
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target