mirror of
https://github.com/ViViDboarder/hassio-addon-rclone.git
synced 2024-12-22 11:37:42 +00:00
Fix full path to backups for pruning
This commit is contained in:
parent
169dc218eb
commit
b364d4d3ec
@ -13,7 +13,7 @@ fi
|
|||||||
|
|
||||||
if bashio::config.true 'protected_only'; then
|
if bashio::config.true 'protected_only'; then
|
||||||
find /backup -name "*.tar" -exec tar -xOf "{}" ./backup.json \; \
|
find /backup -name "*.tar" -exec tar -xOf "{}" ./backup.json \; \
|
||||||
| jq -r 'select(.protected) | "\(.slug).tar"' \
|
| jq -r 'select(.protected) | "/backup/\(.slug).tar"' \
|
||||||
| timegaps --stdin $TIMEGAPS_DELETE "$TIMEGAPS_RULES"
|
| timegaps --stdin $TIMEGAPS_DELETE "$TIMEGAPS_RULES"
|
||||||
else
|
else
|
||||||
timegaps $TIMEGAPS_DELETE "$TIMEGAPS_RULES"
|
timegaps $TIMEGAPS_DELETE "$TIMEGAPS_RULES"
|
||||||
|
Loading…
Reference in New Issue
Block a user