Change backup directory to external USB
This commit is contained in:
parent
bdb0412836
commit
2e9f03aec1
@ -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
|
||||
|
Reference in New Issue
Block a user