Browse Source

bugfig: docker error cannot mount file as directory

master
B.J. Dweck 7 months ago
parent
commit
b409d7fe28
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      scripts/backup.sh

+ 4
- 0
scripts/backup.sh View File

@ -38,6 +38,8 @@ function restore {
$DOCKER_COMPOSE stop $tor_service
cp $backup_file backup.tar.gz
docker run --rm \
-v $subscriber_volume:/data/subscriber \
-v $tor_volume:/data/tor \
@ -46,6 +48,8 @@ function restore {
tar -C / -xzvf /backup/backup.tar.gz
$DOCKER_COMPOSE start $tor_service
rm backup.tar.gz
}
$1

Loading…
Cancel
Save