diff --git a/backup.sh b/backup.sh index e9ea2ac..2d43f1e 100755 --- a/backup.sh +++ b/backup.sh @@ -71,5 +71,5 @@ timestamp="$(date --utc -Iseconds)" s3 cp \ --storage-class DEEP_ARCHIVE \ - \ - "s3://${bucket}/${name}-${timestamp}/${filepath}.tar.gz.gpg" + "s3://${bucket}/${name}-${timestamp}/${filepath##*(/)}.tar.gz.gpg" done