From da2801135c2b699f8d47b0895b76e1ba5ef61605 Mon Sep 17 00:00:00 2001 From: ronnic Date: Mon, 26 Feb 2024 11:35:17 -0800 Subject: [PATCH] update s3 dirs --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 00c314e..0cc088c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -67,7 +67,7 @@ steps: image: amazon/aws-cli commands: - | - find /backup -type f -name "*.tar.enc" -exec aws s3 cp "{}" "s3://ronnic-backup/{}" \; + find /backup -type f -name "*.tar.enc" -exec sh -c 'aws s3 cp "$1" "s3://ronnic-backup/backup/$(basename $1)"' _ {} \; environment: AWS_ACCESS_KEY_ID: from_secret: aws_access_key_id