... | ... | @@ -131,7 +131,10 @@ procedure](#installation) and has an up to date blockchain. |
|
|
On server A:
|
|
|
|
|
|
systemctl stop btcpayserver
|
|
|
tar cfz backup.tgz /var/lib/docker/volumes/
|
|
|
tar -c -z --exclude generated_bitcoin_datadir -f backup.tgz /var/lib/docker/volumes/
|
|
|
|
|
|
Note that this excludes the blockchain, to save some space. It's
|
|
|
assumed the target already has a copy.
|
|
|
|
|
|
Copy `backup.tgz` to server B.
|
|
|
|
... | ... | @@ -141,7 +144,7 @@ On server B: |
|
|
mv /var/lib/docker/volumes/generated_bitcoin_datadir/ /var/lib/docker/generated_bitcoin_datadir.bak/
|
|
|
rm -rf /var/lib/docker/volumes/
|
|
|
tar -C / -x -f -z backup.tgz
|
|
|
mv /var/lib/docker/volumes/generated_bitcoin_datadir.bak/ /var/lib/docker/generated_bitcoin_datadir/
|
|
|
mv /var/lib/docker/generated_bitcoin_datadir.bak/ /var/lib/docker/volumes/generated_bitcoin_datadir/
|
|
|
/root/BTCPayServer/btcpayserver-docker/changedomain.sh btcpay.torproject.org
|
|
|
systemctl start btcpayserver
|
|
|
|
... | ... | |