fix variable name

This commit is contained in:
2025-05-14 11:41:20 -05:00
parent f7a3801ebc
commit 56b47751c2

View File

@@ -276,9 +276,9 @@ backup:
args:
- -ec
- |
export 1_WEEK_AGO=$(date -d @$(( $(date +%s) - 604800 )) +%Y-%m-%d\ %H:%M:%S);
export 2_WEEK_AGO=$(date -d @$(( $(date +%s) - 1209600 )) +%Y-%m-%d\ %H:%M:%S);
export TIME_RANGE="$2_WEEK_AGO"
export ONE_WEEK_AGO=$(date -d @$(( $(date +%s) - 604800 )) +%Y-%m-%d\ %H:%M:%S);
export TWO_WEEK_AGO=$(date -d @$(( $(date +%s) - 1209600 )) +%Y-%m-%d\ %H:%M:%S);
export TIME_RANGE="$TWO_WEEK_AGO"
echo ">> Running S3 prune for Gitea backup repository"
echo ">> Backups prior to '$TIME_RANGE' will be removed"
echo ">> File list:"