Bitcoin Forum
November 19, 2024, 01:10:31 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Backing up wallet.dat  (Read 2747 times)
TheMagikarp (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
June 01, 2011, 07:54:51 AM
 #1

I've created a backup of my wallet.dat (in a TrueCrypt container, of course) and have it stored in 7 or 8 different places.

I read somewhere that if you go too long without updating your wallet.dat that it can become out of date and won't work properly anymore, something to do with only 99 receiving addresses being stored in the file. Realistically, how often should I update my backups to make sure they stay functioning? I intended on updating them roughly once a month. Is this not often enough, or is it more often than I really need to worry about?

I receive 1-2 payments a day, on average, if that makes any difference.
foo
Sr. Member
****
Offline Offline

Activity: 409
Merit: 250



View Profile
June 01, 2011, 09:29:58 AM
 #2

Quote from the Wiki: https://en.bitcoin.it/wiki/Securing_your_wallet

Quote
The wallet contains a pool of queued keys. By default there are 100 keys in the key pool. The size of the pool is configurable using the "-keypool" command line argument. When you need an address for whatever reason (send, “new address”, generation, etc.), the key is not actually generated freshly, but taken from this pool. A brand new address is generated to fill the pool back to 100. So when a backup is first created, it has all of your old keys plus 100 unused keys. After sending a transaction, it has 99 unused keys. After a total of 100 new-key actions, you will start using keys that are not in your backup. Since the backup does not have the private keys necessary for authorizing spends of these coins, restoring from the old backup will cause you to lose Bitcoins.

I know this because Tyler knows this.
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1181


View Profile WWW
June 01, 2011, 09:44:21 AM
 #3

The only actions that require fresh keys from the pool, are change sent back when sending a payment, and generations (mining). You can do at least 100 such actions before a new backup is required.

I do Bitcoin stuff.
vuce
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
June 01, 2011, 10:04:17 AM
 #4

The only actions that require fresh keys from the pool, are change sent back when sending a payment, and generations (mining). You can do at least 100 such actions before a new backup is required.
yesterday I tried restoring a wallet from backup and lost what was sent back with the previous transaction (shows as debit to the newly created address, which obviously isn't in the wallet). There was only one transaction difference between the two wallets. When was this "100 key pool by default" introduced?
Pieter Wuille
Legendary
*
qt
Offline Offline

Activity: 1072
Merit: 1181


View Profile WWW
June 01, 2011, 10:24:46 AM
 #5

The key pool was introduced in 0.3.14

Restoring of a wallet backup is supported since 0.3.20 with -rescan, in earlier versions you had to remove the block database and redownload it.

Since 0.3.21, -rescan is done automatically.

I do Bitcoin stuff.
TheMagikarp (OP)
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
June 01, 2011, 11:46:05 AM
 #6

So if I were to make 3 transactions a day, every day, I'd need to update my backup roughly every month, with no backup much older than that having all my Bitcoins in it.

Please correct me if I'm wrong.
vuce
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
June 01, 2011, 12:32:58 PM
 #7

The key pool was introduced in 0.3.14

Restoring of a wallet backup is supported since 0.3.20 with -rescan, in earlier versions you had to remove the block database and redownload it.

Since 0.3.21, -rescan is done automatically.
this is weird then, I'm running 0.3.21beta
Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
June 01, 2011, 08:10:58 PM
 #8

So if I were to make 3 transactions a day, every day, I'd need to update my backup roughly every month, with no backup much older than that having all my Bitcoins in it.

Please correct me if I'm wrong.
That's correct, assuming that you are re-using your receiving addresses instead of manually generating a new one.

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!