[GHA] GCP Backup upload working

This commit is contained in:
aboyko
2024-07-16 13:28:54 -04:00
parent 21fa3ef658
commit e23b2be87b
4 changed files with 35 additions and 41 deletions

View File

@@ -1,14 +0,0 @@
s3_url=$1
gcp_url=$2
# Process s3_url remove trailing / and get the last segment without the trailing /
file_name=${s3_url%/}
file_name=${file_name##*/}
# Download from S3 then upload to GCP
aws s3 cp $s3_url . --recursive --no-progress
echo "-------"
ls
echo "-------"
gcp storage cp $gcp_url ./$file_name --recursive
rm -rf $file_name