Fix full path to backups for pruning

This commit is contained in:
Ian 2024-02-09 11:04:30 -08:00
parent 169dc218eb
commit b364d4d3ec

View File

@ -13,7 +13,7 @@ fi
if bashio::config.true 'protected_only'; then
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"
else
timegaps $TIMEGAPS_DELETE "$TIMEGAPS_RULES"