Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
1c508ad6
Verified
Commit
1c508ad6
authored
2 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
add full migration procedure between servers
parent
642bca76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/BTCpayserver.md
+27
-0
27 additions, 0 deletions
service/BTCpayserver.md
with
27 additions
and
0 deletions
service/BTCpayserver.md
+
27
−
0
View file @
1c508ad6
...
...
@@ -122,6 +122,33 @@ btcpay.torproject.net to btcpayserver.torproject.org in the past), you
/root/BTCPayServer/btcpayserver-docker/changedomain.sh btcpay.torproject.org
### Full migration procedure
Back from the top, migrating from server A to server B, with a rename,
should be like this. This assumes server B followed the
[
installation
procedure
](
#installation
)
and has an up to date blockchain.
On server A:
systemctl stop btcpayserver
tar cfz backup.tgz /var/lib/docker/volumes/
Copy
`backup.tgz`
to server B.
On server B:
systemctl stop btcpayserver
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/
/root/BTCPayServer/btcpayserver-docker/changedomain.sh btcpay.torproject.org
systemctl start btcpayserver
Make sure to update the target of the donation form on
`donate.torproject.org`
. See for example
[
merge request
tpo/web/donate-static!76
](
https://gitlab.torproject.org/tpo/web/donate-static/-/merge_requests/76
)
.
### Faulty upstream procedure
Upstream has a
[
backup procedure
](
https://docs.btcpayserver.org/Docker/#how-can-i-back-up-my-btcpay-server
)
but, oddly,
[
no restore
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment