This commit is contained in:
2024-04-03 11:45:49 +02:00
parent 0f9dd49d13
commit 9009140141
2 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
# script global shortcuts
declare -r BACKUP_NAME="ha-backup-$(date +'%Y-%m-%d %H-%M')"
declare -r BACKUP_NAME="ha-backup-$(date +'%Y-%m-%d-%H-%M')"
declare -r SSH_HOME="${HOME}/.ssh"
# call Home Assistant to create a local backup
@@ -48,7 +48,7 @@ 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"
aws s3 cp "/backup/${SLUG}.tar" s3://${bucket_name}/${BACKUP_NAME}.tar --endpoint-url $custom_endpoint --no-progress --region $bucket_region
aws s3 cp "/backup/${SLUG}.tar" "s3://${bucket_name}/${BACKUP_NAME}.tar" --endpoint-url $custom_endpoint --no-progress --region $bucket_region
#aws s3 sync \
# $monitor_path \
# --endpoint-url $custom_endpoint \