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