Pages:
Author

Topic: bitcoin core wallet backup and wallet.dat file question. how to confirm? - page 2. (Read 298 times)

newbie
Activity: 24
Merit: 21
thank you all. this is very helpful.


It depends: it doesn't hurt to be overly thorough and start from scratch to see if you can restore everything from just the backup you made on a USB stick. I've actually done that years ago, but I don't do it anymore. It helped me believe my backup was enough Smiley
Note that a few more backups is better, just in case the USB stick breaks (after a while). I prefer to use different brands.

so if i want to from scratch i get a separate laptop, load btc core on there from a flashdrive (no internet) and then restore the wallet to that new instance of btc core? if the wallet name shows up in btc core, there the backup worked? is that correct?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
If your "hold wallet" is cold storage, for instance a paper wallet, a single address is indeed easy. But it's better for privacy to use a new address each time, and it's less risky to use a different paper wallet each time you add funds. That way you don't expose all your funds when you want to send a small part of it later on.
but isn;t a single address how these hardware wallets work? im way more nervous about having 50 different address and key pairs and losing 1 or more than keeping up with and securing  a single address and key pair.
Most (if not all) hardware wallets use more than one address. You don't need to backup each individual private key, they're all derived from the same (24) mnemonic seed words.
But that has nothing to do with Bitcoin Core.

Quote
so i can test the wallet backup in btc core without having to have a second computer running core?
It depends: it doesn't hurt to be overly thorough and start from scratch to see if you can restore everything from just the backup you made on a USB stick. I've actually done that years ago, but I don't do it anymore. It helped me believe my backup was enough Smiley
Note that a few more backups is better, just in case the USB stick breaks (after a while). I prefer to use different brands.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
one last question that is a bit different. the only way to have one private key/public key pair for a particular wallet is to only have a single receive address, correct? i plan to set up a temporary wallet and then a hodl wallet for long term saving. for the hodl wallet, only having one address and one public/private key pair would be ok and simpler to keep track of if my short and medium term plan is to only fill the wallet and not spend, yes?
Will the funds be coming from a single source?
If yes, then I think it's fine to use a single address for the "hodl wallet", eg. ExchangeA -> hodl wallet's address;
but not if it's coming from multiple sources like your "temporary wallet" and exhanges, because you might end up linking those sources to each other and to your hodl wallet.

how often is it recommended to make a new back up copy of the wallet.dat file?
If says "HD" at the lower-right (says "HD key generation is enabled" when hovered), your current backup is enough to restore the newly derived addresses.
But if you want to keep the labels updated, update your backup as well.
legendary
Activity: 3290
Merit: 3011
BTC price road to $80k
how often is it recommended to make a new back up copy of the wallet.dat file?

2 to 3 times to make sure that you created a backup copy and make sure to put them in a separate folder if you have extra USB/HDD put it there and make sure to don't connect it to any device connected to the internet and test it 2 to 3 times to confirm that you have your original wallet.

I recently test to make a backup on the GUI using file>backup wallet it pops up and asks to give a wallet name after generated a wallet file it has a .dat file at the end so it means that on the Linux it doesn't show .dat at the end of the wallet file generated without using ls -a command it won't show the file extension.
newbie
Activity: 24
Merit: 21
thank you all very much for the responses. i just need to make absolutely sure i have the wallet.dat file/files for each wallet and several copies and i should be good to go. then i can test each back up to ensure its correct.

how often is it recommended to make a new back up copy of the wallet.dat file?
legendary
Activity: 2520
Merit: 2853
Top Crypto Casino
but isn;t a single address how these hardware wallets work? im way more nervous about having 50 different address and key pairs and losing 1 or more than keeping up with and securing  a single address and key pair. but again, im trying to figure this all out and not lose any coin in the process.
Bitcoin core wallets are deterministic wallets, meaning that all key pairs are derived from one seed. Therefore, you only need to back up is the wallet file and every time you restore that wallet you will get the same addresse. So, you don't have to back up each key pair individually.

Quote
so i can test the wallet backup in btc core without having to have a second computer running core?
Yes, just open the back up file and see if you get the same wallet.
newbie
Activity: 24
Merit: 21

Are you also a "super n00b" on Ubuntu? If so, you should make sure to understand what you're doing before funding the wallet with any substantial amount.

Yes, this is the first time i am using ubuntu solely for the purposes of trying to run a node to take custody of btc myself. im trying to learn. seems like this is the method least reliant on others, but it seems fairly cumbersome and tedious.


Ubuntu will show this as Trash in the file manager, with a trash bin icon. The real question is how you managed to trash your backup without knowing it!

yes, great question. i have no idea. i simply used the file>back up and then copied those files to a flashdrive. thats why im on here, trying to figure all this out. its not all exactly straightforward, but i appreciate folks responding here.


If your "hold wallet" is cold storage, for instance a paper wallet, a single address is indeed easy. But it's better for privacy to use a new address each time, and it's less risky to use a different paper wallet each time you add funds. That way you don't expose all your funds when you want to send a small part of it later on.

but isn;t a single address how these hardware wallets work? im way more nervous about having 50 different address and key pairs and losing 1 or more than keeping up with and securing  a single address and key pair. but again, im trying to figure this all out and not lose any coin in the process.


I've never used Bitcoin Core's File > Backup Wallet... feature, but instead always just manually copy my wallet.dat (ideally when Bitcoin Core is not running). I create all my backups on a file system level, so I see no reason to make an exception for Bitcoin Core.
It is good practice to actually test your backup before relying on it. Testing is as simple as running it in Bitcoin Core.

so i can test the wallet backup in btc core without having to have a second computer running core?

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I now want to back up these wallets so that i can make copies of the backups and not lose my coins. I have the following questions as i am very unsure how to know for certain if have everything properly backed up and saved.
I've never used Bitcoin Core's File > Backup Wallet... feature, but instead always just manually copy my wallet.dat (ideally when Bitcoin Core is not running). I create all my backups on a file system level, so I see no reason to make an exception for Bitcoin Core.
It is good practice to actually test your backup before relying on it. Testing is as simple as running it in Bitcoin Core.
super noob here
Are you also a "super n00b" on Ubuntu? If so, you should make sure to understand what you're doing before funding the wallet with any substantial amount.

i understand i can use the terminal and commands but im not familiar with doing that.
The terminal is the best thing Linux has to offer: I often use it, even though there's a graphical alternative. Once you understand the basics, it's fast and powerful.

when looking at the back up on a windows computer i did find a folder called .trash and in it was the .dat file for the wallet i backed up up "walletname".dat. so at least i know what im looking for now.

this is all in ubuntu, which i am completely new to, so perhaps it was hidden folder which can be made visible with a setting change.
Ubuntu will show this as Trash in the file manager, with a trash bin icon. The real question is how you managed to trash your backup without knowing it!

Quote
one last question that is a bit different. the only way to have one private key/public key pair for a particular wallet is to only have a single receive address, correct? i plan to set up a temporary wallet and then a hodl wallet for long term saving. for the hodl wallet, only having one address and one public/private key pair would be ok and simpler to keep track of if my short and medium term plan is to only fill the wallet and not spend, yes?
If your "hold wallet" is cold storage, for instance a paper wallet, a single address is indeed easy. But it's better for privacy to use a new address each time, and it's less risky to use a different paper wallet each time you add funds. That way you don't expose all your funds when you want to send a small part of it later on.
newbie
Activity: 24
Merit: 21
Thank you both very much.

for whatever reason when i backed up the wallets (file>backup wallet) what was created and visible was a single file that was not a .dat file. later when looking at the back up on a windows computer i did find a folder called .trash and in it was the .dat file for the wallet i backed up up "walletname".dat. so at least i know what im looking for now.

this is all in ubuntu, which i am completely new to, so perhaps it was hidden folder which can be made visible with a setting change. either way, i think i have my plan now and will know how to test to make sure it works.

one last question that is a bit different. the only way to have one private key/public key pair for a particular wallet is to only have a single receive address, correct? i plan to set up a temporary wallet and then a hodl wallet for long term saving. for the hodl wallet, only having one address and one public/private key pair would be ok and simpler to keep track of if my short and medium term plan is to only fill the wallet and not spend, yes?

thanks again for the responses.
legendary
Activity: 2394
Merit: 5531
Self-proclaimed Genius
2) I have actually created a backup file already, but the backup file that is created does not seem be a .dat file. when i save it to a USB stick or DVR and look at the file on a windows computer the file type says "21 file". is that correct or is the back up more than just the .dat which would be contained in the overall backup file?
Windows has an option to hide/show the file extension but since it says "Type: 21 file", it means that the extension isn't ".dat" which shouldn't be the case with "File->Backup Wallet".
You can display the extension in Windows in the 'file explorer' menu "View->File Name Extensions".

however, i suppose that is how i need to do it to make absolutely sure i have the right file/files. If i have two wallets created/set up, will each wallet have its own wallet.dat file? if so, how do i tell them apart? sorry, i know these are likely very basic questions.
Yes, 1 wallet = 1 backup with ".dat" extension.
You can set a name when you use "File->Backup wallet" but make sure that the correct wallet is selected in the "Wallet:" drop-down menu at the right,
you can also set a wallet name during wallet creation (in the later versions). IMO, naming those differently is enough to tell them apart from each other.
newbie
Activity: 24
Merit: 21
i did not go into any folder to get the wallet.dat file, i simply used the bitcoin-qt interface and used file > backup wallet and then saved that file to the documents folder, then copied to a USB stick.

i understand i can use the terminal and commands but im not familiar with doing that.

however, i suppose that is how i need to do it to make absolutely sure i have the right file/files. If i have two wallets created/set up, will each wallet have its own wallet.dat file? if so, how do i tell them apart? sorry, i know these are likely very basic questions.

getting a second computer to restore the backups sounds like a good idea as well. that will ensure i did everything correctly if i can restore to a new set up.
legendary
Activity: 3290
Merit: 3011
BTC price road to $80k
All question seems a bit the same they are all talks about the backup file.

What do I want to know is if what folder did you get the backup file?

The wallet file should have extension .dat  unless if your Windows Computer hide all extension that is why it doesn't show .dat file.
To find the bitcoin core wallet.dat file you can find the right folder under this path below

Code:
~/.bitcoin/

You should use this command below to see the file extension

Code:
ls -a
Then look for wallet.dat the name it was created by default


If you want to verify your backup you must have another device offline and install bitcoin core then import it there so that you can check if the addresses there are the same as what you see on the original wallet.
And I think it would be better if you could also dump the private keys of all addresses since you run it offline then it is safe to dump the private keys of each wallet you created.
newbie
Activity: 24
Merit: 21
super noob here. i have set up linux ubuntu on an old laptop. i have installed bitcoin core, verified, and DL'd the blockchain this past week (most up to date version). once the blockchain downloaded, i shut down btc core and the laptop and disconnected from the internet (for security?). then i restarted the laptop and btc core and created two wallets in btc core and encrypted both wallets and saved/protected the passcode.

I now want to back up these wallets so that i can make copies of the backups and not lose my coins. I have the following questions as i am very unsure how to know for certain if have everything properly backed up and saved.

1) by opening each wallet and selecting "backup wallet", will the file that is created be EVERYTHING i need in the event the laptop crashes or i have restore this wallet to a new computer?

2) I have actually created a backup file already, but the backup file that is created does not seem be a .dat file. when i save it to a USB stick or DVR and look at the file on a windows computer the file type says "21 file". is that correct or is the back up more than just the .dat which would be contained in the overall backup file?

3) is there a way, to confirm the back up i have made will actually work if it is actually needed? meaning, is there a way to test my backup?

4) my understanding is that if the BTC core wallet has "HD" in the bottom right, i don't need to dump the private keys, as the backup/wallet.dat file will have all that info. is this correct or do i need to make a physical backup of every private key as well.

thank you ahead of time. i really have searched for answers ahead of time, but i don't know what i don't know and not being able to recover things makes me extremely nervous.
Pages:
Jump to: