Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump and restore Bitcoin Unlimited #32

Open
sajal opened this issue Dec 14, 2021 · 0 comments
Open

Dump and restore Bitcoin Unlimited #32

sajal opened this issue Dec 14, 2021 · 0 comments

Comments

@sajal
Copy link
Contributor

sajal commented Dec 14, 2021

re: #22

Commands below require pigz to be installed. If its not then remove --use-compress-program=pigz from the tar commands and add z argument.

Generate dump

BU node must be stopped

sudo tar --exclude=debug.log --exclude=mempool.dat --exclude=wallet.dat --exclude=.lock --exclude=peers.dat --exclude=orphanpool.dat --use-compress-program=pigz -cvf /tmp/bu.tar.gz -C data/bitcoind testnet3

Restore dump

Put the files in the directory before creating the container

mkdir -p data/bitcoind/testnet3
tar --use-compress-program=pigz -xvf  /tmp/bu.tar.gz -C data/bitcoind/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant