apply verbose output
This commit is contained in:
@@ -150,7 +150,7 @@ backup:
|
||||
args:
|
||||
- -ec
|
||||
- |
|
||||
s3cmd put --no-check-md5 --no-check-certificate /opt/backup/gitea-backup.zip s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/gitea-backup-$(date +"%Y%m%d-%H-%M").zip;
|
||||
s3cmd put --no-check-md5 --no-check-certificate -v /opt/backup/gitea-backup.zip s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/gitea-backup-$(date +"%Y%m%d-%H-%M").zip;
|
||||
mv /opt/backup/gitea-backup.zip /opt/backup/gitea-backup-$(date +"%Y%m%d-%H-%M").zip;
|
||||
envFrom:
|
||||
- secretRef:
|
||||
@@ -171,10 +171,10 @@ backup:
|
||||
- |
|
||||
export WEEK_AGO=$(date -d @$(( $(date +%s) - 604800 )) +%Y-%m-%d\ %H:%M:%S);
|
||||
|
||||
s3cmd ls s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/ |
|
||||
s3cmd ls -v s3://gitea-backups-8ba8dae3674a2f53354c600e/cl01tl/cl01tl-gitea-backups/ |
|
||||
awk -v week_ago="$WEEK_AGO" '$1 < week_ago {print $4}' |
|
||||
while read file;
|
||||
do s3cmd del "$file";
|
||||
do s3cmd del -v "$file";
|
||||
done;
|
||||
envFrom:
|
||||
- secretRef:
|
||||
|
Reference in New Issue
Block a user