From e234f505f9051985f218fd9c1859c748f316ffc2 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 17 Aug 2020 23:39:26 +0800 Subject: [PATCH] Fix DB paths --- start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index d6853d9..75d21d1 100755 --- a/start.sh +++ b/start.sh @@ -8,12 +8,12 @@ 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 $BACKUP_DB $LIVE_DB +python3 /usr/local/bin/db-restore.py /app-remote-config/$BACKUP_DB /mnt/app-local-config/$LIVE_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' while true; do sleep 890 date - python3 /usr/local/bin/db-backup.py $LIVE_DB $BACKUP_DB + python3 /usr/local/bin/db-backup.py /mnt/app-local-config/$LIVE_DB /app-remote-config/$BACKUP_DB done