update upload
continuous-integration/drone/push Build is passing Details

main
ronnic 2 years ago
parent 7329c90f88
commit 580b5b3330

@ -67,7 +67,7 @@ steps:
image: amazon/aws-cli image: amazon/aws-cli
commands: commands:
- | - |
find /backup -type f -name "*.tar.enc" -exec sh -c 'aws s3 cp "$1" "s3://ronnic-backup/backup/$(basename $1)"' _ {} \; find /backup -type f -name "*.tar.enc" ! -name "_backup.tar.enc" -exec sh -c 'aws s3 cp "$1" "s3://ronnic-backup/backup/$(basename $1)"' _ {} \;
environment: environment:
AWS_ACCESS_KEY_ID: AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id from_secret: aws_access_key_id
@ -79,7 +79,7 @@ steps:
- name: config_volumes - name: config_volumes
path: /backup path: /backup
- name: cleanup-old-backups - name: cleanup
image: alpine image: alpine
commands: commands:
- rm -f /backup/*.tar.enc - rm -f /backup/*.tar.enc

Loading…
Cancel
Save