That script was crap. It failed due to hard-coded docker-compose project names

This commit is contained in:
B.J. Dweck 2020-11-02 16:20:26 +02:00
parent 8c02e4f231
commit fe766569c3

View File

@ -1,25 +0,0 @@
#!/bin/bash
# Script to migrate from volume-less tor instance to one that retains
# tor hidden service state (onion url, etc.)
mkdir -p backup/tor
docker cp torch-subscriber-docker_tor_1:/var/lib/tor/svc backup/tor/
docker-compose down
docker-compose up --no-start
docker run --rm \
-v $(pwd)/backup/tor:/backup \
-v torch-subscriber-docker_tor_config:/tor \
ubuntu \
cp -r /backup/svc /tor/
docker run --rm \
-v torch-subscriber-docker_tor_config:/tor \
ubuntu \
chown -R 0:0 /tor
rm -rf backup
docker-compose up -d