From 2e9f03aec134cc49ed8b6803b6baad2bae335bdb Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 14 Dec 2019 13:30:04 +0100 Subject: [PATCH] Change backup directory to external USB --- backup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.sh b/backup.sh index 95bd628..20128d7 100755 --- a/backup.sh +++ b/backup.sh @@ -88,7 +88,7 @@ function backup { set -o xtrace docker run --rm \ -v loki_${vol}:/opt/${vol} \ - -v /srv/backup:/opt/backup \ + -v /media/usb0:/opt/backup \ debian:stable-slim \ bash -c "cd /opt/${vol} && tar cf /opt/backup/${vol}.tar ." set +o xtrace @@ -111,7 +111,7 @@ function restore { set -o xtrace docker run --rm \ -v loki_${vol}:/opt/${vol} \ - -v /srv/backup:/opt/backup \ + -v /media/usb0:/opt/backup \ debian:stable-slim \ bash -c "cd /opt/${vol} && tar xf /opt/backup/${vol}.tar" set +o xtrace