diff --git a/scripts/backup.sh b/scripts/backup.sh index fc0662e..1030e36 100755 --- a/scripts/backup.sh +++ b/scripts/backup.sh @@ -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