Bitcoin Forum
April 23, 2024, 02:21:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Backup and restore encryptrd wallet  (Read 987 times)
RedGolpe (OP)
Full Member
***
Offline Offline

Activity: 178
Merit: 100


View Profile
July 23, 2012, 06:48:01 PM
 #1

I've read the various guides about this topic and searched around the forum but I'm not sure the information I found are reliable with the new bitcoind client. So, I encrypt my wallet, store a backup copy somewhere else, but I'm not sure what to do when restoring it. Should I still delete wallet.dat, blkindex.dat and blk0001.dat, restore wallet.dat and let the client perform the whole block scan again? Does the program still know that the wallet is encrypted? Or should I encrypt the new wallet.dat with the same passphrase again before restoring the old one? Thank you in advance.
1713882070
Hero Member
*
Offline Offline

Posts: 1713882070

View Profile Personal Message (Offline)

Ignore
1713882070
Reply with quote  #2

1713882070
Report to moderator
1713882070
Hero Member
*
Offline Offline

Posts: 1713882070

View Profile Personal Message (Offline)

Ignore
1713882070
Reply with quote  #2

1713882070
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713882070
Hero Member
*
Offline Offline

Posts: 1713882070

View Profile Personal Message (Offline)

Ignore
1713882070
Reply with quote  #2

1713882070
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
July 23, 2012, 06:54:00 PM
 #2

The wallet.dat is the only file which contains your private keys (aka "your wallet").



To make a backup:
copy the wallet.dat somewhere safe.
If you AREN'T using client encryption you should encrypt the file w/ third party software.
If you ARE using the client encryption it is already encrypted you are done.

To restore a backup:
copy the saved wallet.dat to the bitcoin data directory.
Your done.


If you start bitcoin client with NO WALLET.DAT then Bitcoin will make a new empty wallet but understand that empty wallet has different (random) addresses.  It is worthless from a back up point of view.  Simply delete it and copy the backup wallet.dat to the data directory.
RedGolpe (OP)
Full Member
***
Offline Offline

Activity: 178
Merit: 100


View Profile
July 23, 2012, 06:56:12 PM
 #3

Thank you for the fast and clear reply.
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
July 23, 2012, 07:00:32 PM
 #4

One thing I would add.  If you run into problems where the client won't show coins, or reports errors you can
1) ALWAYS make a copy of your wallet.dat (even if you are "sure" you don't need to)
2) delete EVERYTHING inside the data dir
3) copy the wallet.dat back to the data dir
4) start Bitcoin

Bitcoin will start "fresh" and established connections to the network and download/verify the blockchain starting with block zero.

NOTE: you probably don't need to do this. For some reasons new users love to jump past all troubleshooting to this step (sometimes throwing a complete uninstall and reinstall in there) FIRST.  99% of the time this isn't necessary but if you get stuck here is a way to "restart".  

As long as your wallet.dat is safe* your coins are safe even if temporarily the client won't open/sync/update/verify/get latest block/insert random error here.

* safe means a good up to date copy of the wallet.dat and the correct passphrase.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!