From 9bd4b048168ef7f748789553cc47c1bed4925934 Mon Sep 17 00:00:00 2001 From: Jonathan Ervine Date: Mon, 27 Jul 2020 13:11:38 +0800 Subject: [PATCH] Fixed directory names --- start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/start.sh b/start.sh index de2bdda..f8e1acb 100755 --- a/start.sh +++ b/start.sh @@ -3,16 +3,16 @@ ## Script to automate the copy of Sonarr databases ## echo -e 'Starting the sidecar container to periodically backup the sonarr databases' -chown 1003:1003 /mnt/sonarr-local-config +chown 1003:1003 /mnt/app-local-config echo -e 'Copy the config from the remote share to the ramdisk' -cp -fvp /sonarr-config/*.* /mnt/sonarr-local-config +cp -fvp /app-remote-config/*.* /mnt/app-local-config echo -e 'Set up the filesystem freeze, copy, unfreeze loop' while true; do sleep 890 date - sync /mnt/sonarr-local-config/*.* - fsfreeze --freeze /mnt/sonarr-local-config + sync /mnt/app-local-config/*.* + fsfreeze --freeze /mnt/app-local-config sleep 10 - cp -fvp /mnt/sonarr-local-config/*.* /sonarr-config/ - fsfreeze --unfreeze /mnt/sonarr-local-config + cp -fvp /mnt/app-local-config/*.* /app-remote-config/ + fsfreeze --unfreeze /mnt/app-local-config done