update
This commit is contained in:
@@ -47,14 +47,14 @@ export AWS_REGION="$bucket_region"
|
|||||||
|
|
||||||
bashio::log.debug "Using AWS CLI version: '$(aws --version)'"
|
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 "Command: 'aws s3 sync $monitor_path s3://$bucket_name/ --no-progress --region $bucket_region'"
|
||||||
bashio::log.debug "SLUG: $SLUG"
|
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 sync \
|
#aws s3 sync \
|
||||||
$monitor_path \
|
# $monitor_path \
|
||||||
--endpoint-url $custom_endpoint \
|
# --endpoint-url $custom_endpoint \
|
||||||
s3://$bucket_name/ \
|
# --no-progress \
|
||||||
--no-progress \
|
# s3://$bucket_name/ \
|
||||||
--region $bucket_region \
|
# --region $bucket_region \
|
||||||
|
|
||||||
if bashio::var.true "${delete_local_backups}"; then
|
if bashio::var.true "${delete_local_backups}"; then
|
||||||
bashio::log.info "Will delete all the oldest local backups except the '${local_backups_to_keep}' newest ones."
|
bashio::log.info "Will delete all the oldest local backups except the '${local_backups_to_keep}' newest ones."
|
||||||
|
|||||||
Reference in New Issue
Block a user