Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wozz committed Dec 16, 2023
1 parent ebb4be4 commit 428cd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amazon-s3-backup/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "S3 Backup",
"version": "1.0.2",
"version": "1.0.3",
"slug": "s3-backup",
"description": "Sync Backups to your S3 bucket",
"url": "https://github.com/wozz/ha-addons/tree/main/amazon-s3-backup",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ bashio::log.debug "Using AWS CLI version: '$(aws --version)'"

# Discover and download/copy backups made in the last day that are not stored locally
curl -s -H "Authorization: Bearer $SUPERVISOR_TOKEN" supervisor/backups | jq -r \
'.data.backups[] | select(.date[0:19] | strptime("%Y-%m-%dT%H:%M:%S") | mktime > now-86400) | select(.location != null) | .slug' \
'.data.backups[] | select(.date[0:19] | strptime("%Y-%m-%dT%H:%M:%S") | mktime > now-86400) | select(.location != null) | .slug' | \
xargs -n1 -I% sh -c 'curl -s -H "Authorization: Bearer $SUPERVISOR_TOKEN" supervisor/backups/%/download | aws s3 cp --endpoint-url $custom_endpoint - s3:https://$bucket_name/%.tar'

bashio::log.info "Finished S3 Backup."

0 comments on commit 428cd44

Please sign in to comment.