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"?

  • 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. bitcointalk.org/index.php?topic=55842.0
    – ripper234
    Commented Dec 31, 2011 at 10:28

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.