Bitcoin Forum
April 23, 2024, 05:14:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: How to Backup Wallet  (Read 44113 times)
wings (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 25, 2010, 03:53:27 PM
 #1

Can someone please tell me how to backup the bitcoin wallet?

I see the files, directories, address books, but I am not sure where the wallet is?

thanks,

-W
1713892480
Hero Member
*
Offline Offline

Posts: 1713892480

View Profile Personal Message (Offline)

Ignore
1713892480
Reply with quote  #2

1713892480
Report to moderator
1713892480
Hero Member
*
Offline Offline

Posts: 1713892480

View Profile Personal Message (Offline)

Ignore
1713892480
Reply with quote  #2

1713892480
Report to moderator
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
June 25, 2010, 07:00:17 PM
 #2

Copy the wallet.dat file somewhere safe and secure.
To be 100% belt-and-suspenders safe, shut down Bitcoin before doing the copy.

wallet.dat is:
  Linux/unix:  ~/.bitcoin/wallet.dat
  Windows: %APPDATA%\Bitcoin\wallet.dat  (I think; I don't run Windows)
  Mac: ~/Library/Application Support/Bitcoin/wallet.dat


How often do you get the chance to work on a potentially world-changing project?
sentry360
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
July 20, 2010, 10:21:37 PM
 #3

Just to make sure, being new to Linux it took me a minute to figure out what to do to get some result. What I did is:

cp ~/.bitcoin/wallet.dat walletbackup.dat

Is this file an effective backup of my wallet?
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5180
Merit: 12873


View Profile
July 20, 2010, 10:47:43 PM
 #4

Yes. But make sure you stop BitCoin before doing that.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Inedible
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


What doesn't kill you only makes you sicker!


View Profile
July 20, 2010, 10:51:58 PM
 #5

You'll want to make sure that wherever you copy it to, no-one else can get access to it.

If this post was useful, interesting or entertaining, then you've misunderstood.
FreeMoney
Legendary
*
Offline Offline

Activity: 1246
Merit: 1014


Strength in numbers


View Profile WWW
July 21, 2010, 06:28:48 AM
 #6

I am not 100% clear on this and would like someone to explain.

I read that you can have problems if you backup, spend some, and then load the outdated backup. This is because you will have the key to the already spent coin, but not the key to the "change" that was generated and is not in your backup. So you need to redo the backup after every transaction or risk having unspendable coins.

I think a solution to this would be to have a "savings account" that rarely receives transfers and always keep a backup of it. And have a "spending account" that you wouldn't be devastated to lose.

Play Bitcoin Poker at sealswithclubs.eu. We're active and open to everyone.
Inedible
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


What doesn't kill you only makes you sicker!


View Profile
July 21, 2010, 10:18:10 AM
 #7

I am not 100% clear on this and would like someone to explain.

I read that you can have problems if you backup, spend some, and then load the outdated backup. This is because you will have the key to the already spent coin, but not the key to the "change" that was generated and is not in your backup. So you need to redo the backup after every transaction or risk having unspendable coins.

I think a solution to this would be to have a "savings account" that rarely receives transfers and always keep a backup of it. And have a "spending account" that you wouldn't be devastated to lose.

To keep it simple, you could think of it like backing up your email folder. I you backup, send some email and then restore your backup, you're not going to have your newly sent email.

Why you'd want to spend your coins and then restore a backup is beyond me (except for fraud reasons but someone committing fraud wouldn't be asking on a public forum).

I believe the more accurate answer is because BTC are spent in the chunks they came in.

E.g. you have 150 BTC which were generated by you. This gives you 3 x 50BTC chunks.

You decide to spend 125BTC on something super shiny. All 3 of your chunks get spent BUT 25BTC are returned as change.

Your wallet now has new data saying, all 3 chunks were spent but you now have a new 25 BTC amount (your 'change' if you will).

If you overwite this wallet, the system will know you've gotten rid of the 3 chunks (of 150BTC) but it won't have the new key for your 25BTC change, thus you lose it all (except you still have your super shiny).

That's my understanding of it - can someone more experienced confirm?

If this post was useful, interesting or entertaining, then you've misunderstood.
FreeMoney
Legendary
*
Offline Offline

Activity: 1246
Merit: 1014


Strength in numbers


View Profile WWW
July 23, 2010, 06:31:27 AM
 #8


Why you'd want to spend your coins and then restore a backup is beyond me (except for fraud reasons but someone committing fraud wouldn't be asking on a public forum).

 

Um, am I confused? You would restore your backup because you lost your wallet. So I backup, spend, loose my wallet. The backup is not reliable, I don't have any change keys.

I have to back up the wallet after every transaction, sent and received.

I just thought of another possibility. If I know I will never be using smaller units than .1 BTC I can churn my balance until it only contains tenths. Now I backup and can spend in increments of tenths without needing to make a new backup. Bleh, until someone sends me a 50. Does anyone know if I have a 50 and 3000 tenths if it will always use the tenths first? It ought I would think.

Play Bitcoin Poker at sealswithclubs.eu. We're active and open to everyone.
rahl
Full Member
***
Offline Offline

Activity: 140
Merit: 100



View Profile
June 07, 2011, 06:40:28 AM
 #9

Really seems like the client should have an option to automatically backup the wallet after every transaction if this is the case ehh...

Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
June 07, 2011, 07:25:10 AM
 #10

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.

lonestranger
Member
**
Offline Offline

Activity: 115
Merit: 10


I like long walks on the beach, shaving my head...


View Profile
June 07, 2011, 01:31:59 PM
 #11

Boy, I'm really trying to follow the instructions here, but I can't even find a wallet.dat file on my system. I recently started using ubuntu 10.04 (like it), but linux is a daily learning challenge.  Where is wallet.dat?
bitlotto
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


BitLotto - best odds + best payouts + cheat-proof


View Profile WWW
June 07, 2011, 02:19:34 PM
 #12

Boy, I'm really trying to follow the instructions here, but I can't even find a wallet.dat file on my system. I recently started using ubuntu 10.04 (like it), but linux is a daily learning challenge.  Where is wallet.dat?
In the file browser make sure to set the option to see hidden files. The wallet.dat is in the ".bitcoin" folder.

*Next Draw Feb 1*  BitLotto: monthly raffle (0.25 BTC per ticket) Completely transparent and impossible to manipulate who wins. TOR
TOR2WEB
Donations to: 1JQdiQsjhV2uJ4Y8HFtdqteJsZhv835a8J are appreciated.
thinkweis
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile WWW
June 22, 2011, 03:36:07 AM
Last edit: June 22, 2011, 05:12:24 AM by thinkweis
 #13

I made a page on my site dedicated to creating a secure bitcoin wallet using a thumb drive. Even if you've never used Ubuntu before this tutorial will make it very easy for you. It includes detailed instructions on every step of installing Ubuntu and securing your wallet. Includes screenshots.

http://startbitcoin.com/how-to-create-a-secure-bitcoin-wallet/

If this was helpful to you, please donate. 1HbdRpinMDQ2cgUWsKiMPDN2icC8rNpS1i

-Think
sprawl
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
July 11, 2011, 04:10:12 PM
 #14

The Bitcoin Wiki has a page on backups: https://en.bitcoin.it/wiki/Backup#Backup

I wrote my own script (instead of searching and using an existing script Grin) for regular and automated backups: https://github.com/hreese/Bitcoin-Wallet-Backup
Blackout
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
July 27, 2011, 02:22:03 AM
 #15


This backup does not make sense....

if you make and exact backup of your bitcoin wallet, as far as I can tell, it is only good for use if your original wallet never gets into trouble.

If some virus or phishing or just someone on your computer gets access to or spends the bitcoins in the original wallet - you are f&^cked. Hence?  What is the point of this backup? You will load the back and it will be invalid and the coins will be gone.

I think the only true backup is to make a NEW bitcoin wallet install on a thumb drive and encrypte it and disconnect it from the computer most of the time unless you need access to your coins, and then send your bitcoins to that separate wallet from your main wallet - so you have an operating wallet that you keep a few coins in, and then your savings wallet that is not connected to the internet.  Perhaps you backup the saving wallet just incase the usb drive goes bad or something... but other than that backup up your bitcoin wallet is useless unless I am blind and missing something here.

 

http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
July 27, 2011, 03:05:14 AM
 #16

Backing up the wallet.dat file is meant to protect you from losing coins due to Windows eating itself, your hard drive dying, reinstalling Windows etc. The usual stuff that Windows users have to put up with. It won't necessarily protect you from having the file stolen. (Though if you know or suspect it's been stolen, you can always try to send the coins before the thief does.)

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
Blackout
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
July 27, 2011, 07:32:31 AM
 #17

That's what I figured.

How do you make a NEW wallet though?  Does it have to be on a different machine?

I tried to install the new client to a thumb drive but when I opened it up it was still my same old wallet, not a new one.


http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
jackjack
Legendary
*
Offline Offline

Activity: 1176
Merit: 1233


May Bitcoin be touched by his Noodly Appendage


View Profile
July 27, 2011, 08:49:35 AM
 #18

Either rename wallet.dat to something else so bitcoin makes a new wallet.dat, or use my bitcoin fork with --wallet flag

Own address: 19QkqAza7BHFTuoz9N8UQkryP4E9jHo4N3 - Pywallet support: 1AQDfx22pKGgXnUZFL1e4UKos3QqvRzNh5 - Bitcointalk++ script support: 1Pxeccscj1ygseTdSV1qUqQCanp2B2NMM2
Pywallet: instructions. Encrypted wallet support, export/import keys/addresses, backup wallets, export/import CSV data from/into wallet, merge wallets, delete/import addresses and transactions, recover altcoins sent to bitcoin addresses, sign/verify messages and files with Bitcoin addresses, recover deleted wallets, etc.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
July 27, 2011, 10:10:02 AM
 #19

I have to back up the wallet after every transaction, sent and received.
You do not need to backup the wallet just because you received money. Receiving money doesn't involve actually doing anything on your part other than updating your balance number.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
Blackout
Full Member
***
Offline Offline

Activity: 196
Merit: 100



View Profile WWW
July 27, 2011, 08:02:15 PM
 #20

Either rename wallet.dat to something else so bitcoin makes a new wallet.dat, or use my bitcoin fork with --wallet flag

Can you elaborate how this works a little more?  If I install bit coin on a thumb drive it is still going to use the
wallet.dat in my users dir on win 7?  So I have to rename that walletsavngs.dat and then it will make a new one with no coins in it?

then how do I transfer some of the savings to the new one... I just want to make sure I don't screw things up and end up losing my coins, not that I have a gigantic amount but I figure better to understand this now rather than screw things up royally later.

I really wanted to just have an encrypted whole version on a thumb drive... does it ALWAYS place the wallet.dat file on your local machine? meaning you can't just walk around with your wallet all on your thumb drive without a machine
and say, then go use it somewhere (like you would a regular cash wallet)

My idea is to have several high grade flash drive wallets and keep one on a key chain so if I was sitting at an internet cafe or something that accepted bitcoins I could do it... more places in NYC are starting to take them.... but how do you do it if you're not home?  I don't want to use some third party service either....  I'm thinking you have it on a thumb drive encrypted with a password but I'm not sure how to go about doing this.

Some say never put your wallet into another machine but then how would you have bitcoin currency on you without carrying around a laptop or something?  I imagine having an amount that you need to use would not be a big risk just as you can't live your life in fear of having cash in your wallet that you're going to get mugged.  You carry the appropriate amount of cash you need in your wallet you don't usually carry your life savings around with you... 
some people are debt card crazy but I don't like banks and companies knowing every god damn ting I do and then marketing to me and tracking me... it's annoying... this is one of the things I like about bitcoin.





http://blackout.com
Insane writings for an Outsane world: http://blackoutsblog.com

Blackout Radio on android or iphone DL TuneIn APP & search for Blackout Radio http://tunein.com/tuner/?StationId=136506

https://secure.btcontilt.com/register.php?referred=Blackout (BTC Poker)
Pages: [1] 2 »  All
  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!