From 29c2b9b4dff859fa67a1e249c86d3060594a4af0 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Aug 2022 06:51:19 -0500 Subject: [PATCH] restic: only keep two days of gitea backups --- roles/restic/files/hooks/gitea.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/restic/files/hooks/gitea.sh b/roles/restic/files/hooks/gitea.sh index 3087809..1f70ead 100644 --- a/roles/restic/files/hooks/gitea.sh +++ b/roles/restic/files/hooks/gitea.sh @@ -9,7 +9,7 @@ GITEA_CONFIG=${GITEA_CONFIG:-/etc/gitea/app.ini} GITEA_WORK_PATH=${GITEA_WORK_PATH:-/var/lib/gitea} GITEA_CUSTOM_PATH=${GITEA_CUSTOM_PATH:-$GITEA_WORK_PATH/custom} GITEA_BACKUP_PATH=${GITEA_BACKUP_PATH:-$GITEA_WORK_PATH/backup} -GITEA_KEEP_DAYS=${GITEA_KEEP_DAYS:-7} +GITEA_KEEP_DAYS=${GITEA_KEEP_DAYS:-2} prereq() { if ! systemctl list-units --full --all | grep -Fq "gitea.service"; then