Bitcoin Forum
May 24, 2024, 04:15:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question about wallet backup  (Read 422 times)
gmg (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
February 25, 2013, 02:11:10 PM
 #1


I have a wallet that is used only for receiving periodic BTC payments from the pool in which I mine. What happens if I lose it and have only an old backup file? Do I restore only the BTC that were in the wallet when I did the backup or the full amount (since the receiving address is in the backup file anyway)?

In other words: do I need to backup regularly or am I safe with the old wallet.dat? (assuming no new addresses were created since).

Thanks!
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 25, 2013, 02:16:08 PM
 #2

Assuming you have not sent any tx's (and are not creating new receive addresses) then your old backup should be fine (although why not create a new backup at least once per month anyway?).

Note that every time you send a tx it is very likely that a *hidden change* address will be used (taken from your address pool which by default is 100 key pairs) so you would be advised to at least create a new backup every 100 tx's that you make even if you never create another receive address.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
gmg (OP)
Member
**
Offline Offline

Activity: 108
Merit: 10


View Profile
February 25, 2013, 02:32:33 PM
 #3

 Thanks! I'm not doing any TXs at all, so I guess the first backup is fine.

However, I just did a new backup before installing the new wallet version (haven't done an upgrade before, so better be sure). The new backup file size is 1.5Mb, while the old backup (back in December) was 1.2Mb. Since there was NO new address generated since December (only payments to an existing address), why the difference in file size? Does the backup keep transactions as well as addresses or only the latter?
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1078


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 25, 2013, 02:48:24 PM
 #4

Am pretty certain that the wallet includes tx information (check the Wiki to find out the details) as well as the key pairs and also any *labels* that you attach to BTC addresses.

If it didn't do this then the entire blockchain would have to be scanned every time you start up Bitcoin to determine your balance (if you ever do an importprivkey you'll see just how long that takes).

It also keeps information about the last block it has seen (so it knows what blocks need to be looked at to work out new tx's and your latest BTC balance).

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
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!