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

@@ -1,6 +1,6 @@
{ {
"name": "bitlab S3 Backup", "name": "bitlab S3 Backup",
"version": "1.0.8", "version": "1.0.9",
"slug": "bitlab-s3-backup", "slug": "bitlab-s3-backup",
"description": "Sync Backups to bitlab S3 storage", "description": "Sync Backups to bitlab S3 storage",
"url": "https://git.bitlab.ch/bitlab/ha-addon", "url": "https://git.bitlab.ch/bitlab/ha-addon",

View File

@@ -6,7 +6,7 @@
# script global shortcuts # 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" declare -r SSH_HOME="${HOME}/.ssh"
# call Home Assistant to create a local backup # 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 "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 $BACKUP_NAME" 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 \ #aws s3 sync \
# $monitor_path \ # $monitor_path \
# --endpoint-url $custom_endpoint \ # --endpoint-url $custom_endpoint \