Skip to content

Commit

Permalink
Revert " implement overkill32#12 and fix name option spelling"
Browse files Browse the repository at this point in the history
  • Loading branch information
TheStigh authored Feb 3, 2020
1 parent fae1154 commit 1d8d72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remote-backup/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function delete-local-backup {
:
elif [[ -z ${KEEP_LOCAL_BACKUP} ]]; then
echo "Deleting local backup: ${slug}"
hassio snapshots remove --name "${slug}"
hassio snapshots remove -name "${slug}"
else

last_date_to_keep=$(hassio snapshots list | jq .data.snapshots[].date | sort -r | \
Expand All @@ -66,7 +66,7 @@ function delete-local-backup {
hassio snapshots list | jq -c .data.snapshots[] | while read backup; do
if [[ $(echo ${backup} | jq .date | xargs date -D "%Y-%m-%dT%T" +%s --date ) -lt ${last_date_to_keep} ]]; then
echo "Deleting local backup: $(echo ${backup} | jq -r .slug)"
hassio snapshots remove --name "$(echo ${backup} | jq -r .slug)"
hassio snapshots remove -name "$(echo ${backup} | jq -r .slug)"
fi
done

Expand Down

0 comments on commit 1d8d72b

Please sign in to comment.