When backing up a wallet, is it required to shut down the bitcoin client?

4

I am building a website, and would like to backup my wallet.dat file after every transaction occurs, but I would not like to have to shut down bitcoind every time I make a backup.

The common wisdom seems to be that you should shut down your bitcoin client when making a backup, but that doesn't seem absolutely necessary as long as the wallet has been fully written to and flushed to disk.

Would locking the wallet be enough to ensure that the wallet has been written to before making a backup? Are there any other techniques that websites typically deploy for making "hot backups"?

AlrightOK

Posted 2011-12-31T05:30:06.723

Reputation: 123

You might want to check out Stratum - it's (one of several) infrastructures being built for thin clients, including thin web servers with no wallet management required. https://bitcointalk.org/index.php?topic=55842.0

ripper234 2011-12-31T10:28:59.540

Answers

2

The Bitcoin client's RPC interface provides a wallet backup command. It's "backupwallet <filename>".

David Schwartz

Posted 2011-12-31T05:30:06.723

Reputation: 46 931