fix variable name
This commit is contained in:
@@ -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:"
|
||||
|
Reference in New Issue
Block a user