mirror of
https://github.com/ViViDboarder/hassio-addon-rclone.git
synced 2024-12-22 03:27:44 +00:00
Add filter to include only tar files
This commit is contained in:
parent
c6178e6550
commit
315671e62a
@ -13,8 +13,9 @@ DESTINATION=$(bashio::config 'destination')
|
||||
|
||||
USERNAME=$(bashio::config 'credentials.username')
|
||||
PASSWORD=$(bashio::config 'credentials.password')
|
||||
FILTER='{"IncludeRule": "*.tar"}'
|
||||
|
||||
command="rclone rc --user \"$USERNAME\" --pass \"$PASSWORD\" sync/$SYNC_COMMAND srcFs=/backup dstFs=$DESTINATION _async=true"
|
||||
command="rclone rc --user \"$USERNAME\" --pass \"$PASSWORD\" sync/$SYNC_COMMAND srcFs=/backup dstFs=$DESTINATION _async=true _filter='$FILTER'"
|
||||
|
||||
echo "$(bashio::config 'cron') $command" >> /etc/crontabs/root
|
||||
crontab -l
|
||||
|
Loading…
Reference in New Issue
Block a user