update
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user