Bitcoin Forum
June 15, 2024, 09:16:44 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallet backup strategy  (Read 904 times)
tenakha (OP)
Hero Member
*****
Offline Offline

Activity: 1470
Merit: 509



View Profile
September 24, 2012, 04:28:59 PM
 #1

If I backup my wallet.dat file and store it somewhere safely. I can recover my wallet my installing bitcoin-qt and then dropping the existing wallet.dat file right?

My question is - do I need to back up after every few transactions? Or will my 'recovered' wallet automatically 'catch-up' ? As all transaction to-from my wallet *after* backing up are recorded in the ledger right? So I only have to do a one time backup?

Is that how it works?
Gabi
Legendary
*
Offline Offline

Activity: 1148
Merit: 1008


If you want to walk on water, get out of the boat


View Profile
September 24, 2012, 05:15:11 PM
 #2

You need to update the backup if the wallet have new addresses. As long as the backup has all the addresses it's fine. But if you then create a new one and receive bitcoins in it, the backup wallet do NOT have it.

Your addresses=private keys. If you create a new address and you don't update the backup, then of course the backup don't have the key for that address

To complicate more the matter there is the fact that a newly created wallet.dat has already 100 address in it.  Cheesy

Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
September 24, 2012, 05:21:47 PM
 #3

Your wallet file always has a buffer of 100 addresses. Meaning that as long as you haven't generated more than 100 addresses since you made the backup, you'll be fine.

You can assume that an address will be generated for every transaction you send or receive.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
BC12345
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
September 24, 2012, 05:54:10 PM
Last edit: September 24, 2012, 06:05:36 PM by BC12345
 #4

Hi, I asked the same question on another sub forum and got the same answer as given by "Gabi". Could someone clarify some things for me, please:

- in another thread someone mentioned a bug that the 100 addresses are only created after a few transactions:

Really seems like the client should have an option to automatically backup the wallet after every transaction if this is the case ehh...
This thread is extremely old. Since then, we've implemented the creation of a pool of 100 (by default) pre-generated keys that your client will use. That means that a backup won't expire after each transaction anymore. However, you still need to do regular backups.

Note: there is currently a bug where the pool won't be created in a new wallet until a few transactions are made.

Is this bug fixed by now?

- If I click on the "New Address" button in the bitcoin client, will the client really create a "new" adress (and I have to update my backups) or will it use one of the 100 addresses in the buffer as long as there are some left?

- Is there a way to check how many of the 100 addresses are left?
Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
September 24, 2012, 06:07:29 PM
 #5

- in another thread someone mentioned a bug that the 100 addresses are only created after a few transactions:
Really seems like the client should have an option to automatically backup the wallet after every transaction if this is the case ehh...
This thread is extremely old. Since then, we've implemented the creation of a pool of 100 (by default) pre-generated keys that your client will use. That means that a backup won't expire after each transaction anymore. However, you still need to do regular backups.

Note: there is currently a bug where the pool won't be created in a new wallet until a few transactions are made.

Is this bug fixed by now?
This quote is over a year old and I haven't heard it in any recent context, so I'd say it's fixed.

- If I click on the "New Address" button in the bitcoin client, will the client really create a "new" adress (and I have to update my backups) or will it use one of the 100 addresses in the buffer as long as there are some left?
It will use an address from the buffer, and generate a new address to replenish it. The buffer will always have 100 addresses.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
BC12345
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
September 24, 2012, 06:52:22 PM
 #6

Ok, thank you!
AbsoluteZero
Member
**
Offline Offline

Activity: 66
Merit: 10


View Profile
September 24, 2012, 07:43:23 PM
 #7

I think you also have to back up the wallet if you send Coins.
Because the program might put the change In a New address.
Change could be the entire balance you have.
BC12345
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
September 24, 2012, 08:40:38 PM
 #8

I think you also have to back up the wallet if you send Coins.
Because the program might put the change In a New address.
Change could be the entire balance you have.


I do not think so. The way I understand it (from the answers above), the client creates a pool of 100 addresses that it uses to receive change from send transactions. I think you should update your backups if:

- you manually create a new address

- your bitcoins in your wallet are so scattered over your addresses that you can not safely assume that the change from a send transaction can be stored in an address that is already existing in your wallet

It would be nice if someone could confirm that my assumptions are correct or give some other advice for a good backup strategy. I think this is an important topic for someone who is new with bitcoins.

Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1054



View Profile WWW
September 24, 2012, 09:17:25 PM
 #9

It would be nice if someone could confirm that my assumptions are correct
Not really. The wallet has a pool of spare addresses. Whenever it needs a new address, whether a change address or when clicking the "new address" button, it takes one from the pool and replenishes it with a fresh one. A change address is always one which was never used before.

or give some other advice for a good backup strategy.
As mentioned, the backup is good until 100 new addresses are generated (change from sending + new recipients). The backup should be frequent enough that even under heavy usage you won't use 100 between backups, otherwise all coins could be lost.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
BC12345
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile
September 24, 2012, 09:24:00 PM
Last edit: September 24, 2012, 09:43:22 PM by BC12345
 #10

It would be nice if someone could confirm that my assumptions are correct
Not really. The wallet has a pool of spare addresses. Whenever it needs a new address, whether a change address or when clicking the "new address" button, it takes one from the pool and replenishes it with a fresh one. A change address is always one which was never used before.

or give some other advice for a good backup strategy.
As mentioned, the backup is good until 100 new addresses are generated (change from sending + new recipients). The backup should be frequent enough that even under heavy usage you won't use 100 between backups, otherwise all coins could be lost.

Ok, I did not know that. Again, thank you.
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!