update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: S3 Backup
|
||||
# ==============================================================================
|
||||
#bashio::log.level "info"
|
||||
bashio::log.level "debug"
|
||||
|
||||
|
||||
# script global shortcuts
|
||||
@@ -61,6 +61,10 @@ export AWS_REGION="$bucket_region"
|
||||
bashio::log.debug "Using AWS CLI version: '$(aws --version)'"
|
||||
bashio::log.debug "Command: 'aws s3 sync $monitor_path s3://$bucket_name/ --no-progress --region $bucket_region'"
|
||||
bashio::log.debug "SLUG: $SLUG $BACKUP_NAME"
|
||||
|
||||
bashio::log.debug '{"TagSet": [{ "Key": "slug", "Value": "${SLUG}" }]}'
|
||||
|
||||
|
||||
aws s3 cp "/backup/${SLUG}.tar" "s3://${bucket_name}/${BACKUP_NAME}.tar" --endpoint-url "${custom_endpoint}" --region "${bucket_region}" --no-progress
|
||||
aws s3api put-object-tagging --bucket "${bucket_name}" --key "${BACKUP_NAME}.tar" --tagging '{"TagSet": [{ "Key": "slug", "Value": "${SLUG}" }]}' --endpoint-url "${custom_endpoint}" --region "${bucket_region}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user