Fixed DB utils

This commit is contained in:
Jonathan Ervine 2020-08-18 00:17:26 +08:00
parent 428fd1fe28
commit 9a98b9add7

View File

@ -8,7 +8,7 @@ echo -e 'Starting the sidecar container to periodically backup the sonarr databa
chown 1003:1003 /app-remote-config/*
echo -e 'Copy the config from the remote share to the local drive'
touch /mnt/app-local-config/$LIVE_DB
python3 /usr/local/bin/db-restore.py /app-remote-config/$LIVE_DB /mnt/app-local-config/$BACKUP_DB
python3 /usr/local/bin/db-restore.py /mnt/app-local-config/$LIVE_DB /app-remote-config/$BACKUP_DB
find /app-remote-config/ -type f -maxdepth 1 -not -iname $BACKUP_DB -exec cp -fvp '{}' '/mnt/app-local-config/' ';'
chown -R 1003:1003 /mnt/app-local-config
echo -e 'Perform periodic backup of database'