Pages:
Author

Topic: Bitcoin Core correct way to backup? (Read 352 times)

newbie
Activity: 500
Merit: 0
July 10, 2022, 07:58:02 AM
#22
Allow me: you're an idiot! And a shitposter, please stop.
If you want sensitive data to remain private: do not trust any cloud service!
Please STOP you. According to your advice, he can lose all his bitcoins. Why would he use your "protected" and vaunted Windows and wallet when this system is full of holes and constantly sends logs? I don’t hear something about bad Microsoft, but you blame Google. In no case should he use Bitcoin Core, let him install a Trust Wallet from Binance. It's easier and safer
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
July 10, 2022, 04:15:15 AM
#21
Why store all information on CD/DVD when you can store it on google drive. I always keep everything there
Allow me: you're an idiot! And a shitposter, please stop.

If you want sensitive data to remain private: do not trust any cloud service!
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
July 10, 2022, 04:13:51 AM
#20
That's true, although i doubt it could last as long as their claim. Besides, it's not that expensive compared with regular CD/DVD so IMO you might as well as get more durable ones.
Why store all information on CD/DVD when you can store it on google drive. I always keep everything there and advise you

There are many reasons not no store such data on Google Drive, such as
  • Google might close your account if your google account inactive for some time[1].
  • If your account is flagged for ridicouls reason (such as storing text file with "0" or "1"[2]), you lose access to Google Drive and it's difficult to make appeal.
  • Google it's known for poor privacy[3].

[1] https://www.howtogeek.com/705245/when-will-google-delete-data-in-inactive-accounts/
[2] https://www.pcmag.com/news/google-drive-flags-text-files-containing-1-as-a-copyright-infringement
[3] https://en.wikipedia.org/wiki/Privacy_concerns_regarding_Google
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
July 09, 2022, 04:16:43 AM
#18
--snip--
That's what scares me, having a hidden bug when using the tool to encrypt the seed or not being able to find a good version of the tool when I want to decrypt the seed in several years. That's why I'd need a very standardized and reliable tool to encrypt. BIP38 seemed perfect for that.

Not all tools is reliable, but OpenSSL (which mentioned on link i shared earlier) is one of most reliable cryptography tool you could find out there. AES also is most common encryption algorithm out there. Personally i find OpenSSL and AES rather more reliable than BIP 38 as long as i bother write down encryption parameter (although i just use default parameter) and OpenSSL version.

CD/DVD only have long lifespan if you buy good ones and store it properly. You might as well as buy specific storage which specially designed for long term archive, such as M-Disc or SanDisk Memory Vault.
I checked both of them that's too much for the human lifespan unless you can live more than 100yrs or only if you have family that you can inherit.

That's true, although i doubt it could last as long as their claim. Besides, it's not that expensive compared with regular CD/DVD so IMO you might as well as get more durable ones.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
July 09, 2022, 06:14:54 PM
#17
Cd/DVD discs are enough for me to hold my coins for the long term.
I have had many CDRs that were useless after a few years. Some are still okay, but I'll always asume they won't last.

The archival ones are bound to last longer, maybe even 100s of years due to being built with silver.  Unfortunately, it's still speculation.  The longevity of the disk isn't the only consideration, one also needs the reader.  I've never had a reader/writer last over 10 or so years, and since they sit unused most of the time it'll be when you need it immediately that you'll realized it has stopped working.  Imagine 20 or 30 years from now, how little demand there will be for optical disks, which means higher prices for reading hardware.  Possibly making it very expensive just to read your archives.


For long term storage, I trust paper much more than anything digital. My solution for Bitcoin Core's wallet.dat is only to keep it as a hot wallet, and don't keep much in it. I have backups too of course (on external HDD and USB stick), and regularly make new backups (even though that's not necessary, it's part of my normal backup routine).

I agree with you about the paper and using core as a hot wallet.  Even though you can use the hdseed to back up the wallet, I would want it on paper and I've yet to see it as worth the trouble/potential risk.  I'm much more likely to make a mistake while transferring an hdseed to paper than I am if transferring 24 common words.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
July 09, 2022, 03:48:26 AM
#16
Cd/DVD discs are enough for me to hold my coins for the long term.
I have had many CDRs that were useless after a few years. Some are still okay, but I'll always asume they won't last.

Quote
M-disc would be a great deal it has 1000yrs of lifespan this would be a nice option if one of your grandchildren is your heir of this backup for future holdings and to later heirs(for new generations). It's not so expensive it's around $80
For long term storage, I trust paper much more than anything digital. My solution for Bitcoin Core's wallet.dat is only to keep it as a hot wallet, and don't keep much in it. I have backups too of course (on external HDD and USB stick), and regularly make new backups (even though that's not necessary, it's part of my normal backup routine).
legendary
Activity: 3472
Merit: 10611
July 08, 2022, 10:00:28 PM
#15
That's what scares me, having a hidden bug when using the tool to encrypt the seed or not being able to find a good version of the tool when I want to decrypt the seed in several years. That's why I'd need a very standardized and reliable tool to encrypt. BIP38 seemed perfect for that.
AES itself is standardized, you just have to know what you are doing when setting the parameters such as padding. cipher mode, etc. so that you can replicate it using any other tool.
BIP38 itself is not that popular either. The major wallets don't support it and the implementations are rare and mostly web tools that may be open source like bitaddress.org.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
July 08, 2022, 05:48:07 PM
#14
CD/DVD only have long lifespan if you buy good ones and store it properly. You might as well as buy specific storage which specially designed for long term archive, such as M-Disc or SanDisk Memory Vault.

I checked both of them that's too much for the human lifespan unless you can live more than 100yrs or only if you have family that you can inherit.
Cd/DVD discs are enough for me to hold my coins for the long term. Since Bitcoin or money, you can't take them with you when you die.

M-disc would be a great deal it has 1000yrs of lifespan this would be a nice option if one of your grandchildren is your heir of this backup for future holdings and to later heirs(for new generations). It's not so expensive it's around $80 for 25GB which is too big for wallet backup.
legendary
Activity: 2604
Merit: 2353
July 08, 2022, 04:58:19 PM
#13
Do you know if there is a way to use a passphrase with this HD seed like we can do with BIP39 memonic seeds? With a Bitcoin Core feature or an external tool.

So far, there's no BIP to encrypt HD/BIP 32 seed with password/passphrase. The other option is use common encryption algorithm (such as AES-256) through offline/open-source tool such as https://cryptotools.net/aes. But since it's not standard/popular method to encrypt HD/BIP 32 seed, you also need to write down how to encrypt/decrypt it and backup relevant software/tool.
That's what scares me, having a hidden bug when using the tool to encrypt the seed or not being able to find a good version of the tool when I want to decrypt the seed in several years. That's why I'd need a very standardized and reliable tool to encrypt a HD seed. BIP38 seemed perfect for that.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
July 07, 2022, 07:03:56 PM
#12
Take note that USB flash drives have 10 years lifespan if you want to hold them for a long term make sure to make multiple copies to other storage or devices like CD/DVD discs these two have a long lifespan of around 30 to 50yrs.

Since the wallet is encrypted you are safe if you put a long password but if someone stole the wallet.dat file with a short password they can easily bypass it, unlike having a strong and long password.

And I would suggest you for safety never connect your PC/Laptop where you install Bitcoin core to the internet. You can make an online watch-only wallet to a live PC/Laptop separately for generating raw unsigned transactions and transfer them to your offline PC through a USB stick to sign the transaction.
legendary
Activity: 2604
Merit: 2353
July 07, 2022, 10:50:15 AM
#11
Recent releases of bitcoin core are hierarchical deterministic (HD) wallets, and you can use the HDSEED to backup and restore the wallet.  An easy way to obtain your HD seed and back up several private keys (including imported ones) all at once is to use dumpwallet.  That will create a clear text file with a bunch of your private keys and associated addresses, but one key is of particular importance; it'll be labeled "hdseed1."  It's a WIF private key, and it can be used to restore a bitcoin core HD wallet with all the other addresses and change addresses.  It will not restore any private keys that were imported using importprivkey or importmulti.

Generally speaking I shy away from storing my backups digitally.  I don't trust the archival longevity of digital media.  The backups I trust most are seed phrases written on paper.  A private key or a QR code on paper is also extremely robust, in my opinion.  The most important thing, however is redundancy.  
I agree with you a file can easily get corrupted, by a virus, a magnetic/electronic incident or a bug. So personally I think it's safer to use a HD seed when I can.
Do you know if there is a way to use a passphrase with this HD seed like we can do with BIP39 mnemonic seeds? With a Bitcoin Core feature or an external tool.
BIP38 allows to get WIF private keys with passwords then I wonder if it's possible to do something like that with a Bitcoincore HD seed (btw it's hdseed=1 actually).
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
July 07, 2022, 04:06:09 AM
#10
-snip-
And perhaps it's also possible, or necessary to store individual private keys in text on a seperate device such as an encrypted USB stick?
If you're using a descriptor wallet, you can use listdescriptors "true" and paste the result to a txt file then encrypt it.
Those descriptors can be used to import your master keys to another wallet using importdescriptors command.

But there's no advantage on doing that over backing-up the wallet.dat file itself aside from a "written in paper" backup option.
HCP
legendary
Activity: 2086
Merit: 4361
July 06, 2022, 06:08:21 PM
#9
I wanted to know if it's enough for me to simply backup the wallet.dat file on an encrypted USB stick? This way I can practically remove Bitcoin Core from my desktop and if I ever wanted to send my funds elsewhere I can re-import the wallet.dat file again, but I can still send funds to this wallet.
That is indeed possible. However, depending on your actual requirements, may not be the best strategy.


I also wonder, if this wallet.dat file is stolen by someone, but my wallet was encrypted, is the wallet.dat file encrypted? Or was that just a local encryption for my desktop.
The data stored in the wallet.dat is encrypted.


I would love to just be able to store my holy wallet.dat file away for many years and be able to re-gain access to my wallet using this file, primarily through other wallets too if Bitcoin Core wallet seizes to exist by then.
Note that while the actual format of the wallet.dat is published and "known"... it is a format that is pretty much exclusive to Bitcoin Core (and some of it's spinoffs like Bitcoin Knots). If you're concerned about the long term, you might want to consider other backup options (or perhaps other wallets).


And perhaps it's also possible, or necessary to store individual private keys in text on a seperate device such as an encrypted USB stick? I was thinking the private keys could be encoded in an encoding language to make them slightly extra secure incase any thief has no idea what he's doing.
Personally, I wouldn't go trying to create "clever" encryption systems... That often creates more issues than it solves.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
July 05, 2022, 11:50:08 PM
#8
Yes, the canonical way to back up a Core walletis to just copy the .dat file to an external storeage. Make sure that you copy it to multiple storage drives to avoid data loss, and make sure that all the copies are protected with a strong password so that hackers can not brute force it even if they try to sell the wallet online.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
July 05, 2022, 02:11:22 PM
#7
I wanted to know if it's enough for me to simply backup the wallet.dat file on an encrypted USB stick? This way I can practically remove Bitcoin Core from my desktop and if I ever wanted to send my funds elsewhere I can re-import the wallet.dat file again, but I can still send funds to this wallet.

That's a perfectly reasonable thing to do, and as others have alluded you should make multiple back ups, on different types of media such as CD and USB/MicorSD.


I also wonder, if this wallet.dat file is stolen by someone, but my wallet was encrypted, is the wallet.dat file encrypted? Or was that just a local encryption for my desktop.

If you need a password to spend from the wallet, then it is indeed encrypted.  Even a wallet with exceptionally strong password/encryption that's been stolen should be considered compromised.  Don't wait, move all funds immediately. 


And perhaps it's also possible, or necessary to store individual private keys in text on a seperate device such as an encrypted USB stick? I was thinking the private keys could be encoded in an encoding language to make them slightly extra secure incase any thief has no idea what he's doing.

Recent releases of bitcoin core are hierarchical deterministic (HD) wallets, and you can use the HDSEED to backup and restore the wallet.  An easy way to obtain your HD seed and back up several private keys (including imported ones) all at once is to use dumpwallet.  That will create a clear text file with a bunch of your private keys and associated addresses, but one key is of particular importance; it'll be labeled "hdseed1."  It's a WIF private key, and it can be used to restore a bitcoin core HD wallet with all the other addresses and change addresses.  It will not restore any private keys that were imported using importprivkey or importmulti.

Generally speaking I shy away from storing my backups digitally.  I don't trust the archival longevity of digital media.  The backups I trust most are seed phrases written on paper.  A private key or a QR code on paper is also extremely robust, in my opinion.  The most important thing, however is redundancy. 
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
July 05, 2022, 08:11:31 AM
#6
I'd like to spare my 2 sats.

If you're comfortable with using Bitcoin Core's GUI as a wallet, that's good, it's an excellent wallet and you can do nearly anything in the console. There's also an entire community here in this forum and in stackexchange that can help you if you ever screw things up somehow.

But, this is particular sentence here doesn't hold water:
I would love to just be able to store my holy wallet.dat file away for many years and be able to re-gain access to my wallet using this file

If you're thinking of leaving your coins untouched for years, then keeping the keys digitally all this time long is a big no from me. Hard drives, USBs, SD cards, they're vulnerable to corrupt. I strongly recommend you to try out some other wallet, which you'll configure to connect to your full node, and that does support backing up with seed phrase, such as Sparrow or Electrum.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
July 05, 2022, 06:37:21 AM
#5
I was thinking the private keys could be encoded in an encoding language to make them slightly extra secure incase any thief has no idea what he's doing.

I think what actually you're looking for is Obfuscation[1]. But generally it's not recommended due to risk of forget or unable to extract the data.

Quote
I would love to just be able to store my holy wallet.dat file away for many years and be able to re-gain access to my wallet using this file, primarily through other wallets too if Bitcoin Core wallet seizes to exist by then.
That should never happen considering that bitcoin core is the reference implementation of Bitcoin. But it is open source and many people are using it, so it would be trivial to write a simple script that decrypts and extracts the keys inside the wallet file to be used elsewhere.

Additionally you could also,
1. Backup Bitcoin Core.
2. Rely on public archive such as https://archive.org/details/software.
2. Ask someone else who have such file, since many enthusiast run Bitcoin Core.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
July 05, 2022, 02:16:15 AM
#4
I would love to just be able to store my holy wallet.dat file away for many years and be able to re-gain access to my wallet using this file, primarily through other wallets too if Bitcoin Core wallet seizes to exist by then.
For long-term storage, you may want to consider creating a cold wallet: install Bitcoin Core on a fresh system that hasn't touched the internet, create your wallet, set a password, create several backups of your wallet.dat (on storage devices from different brands), and thoroughly wipe and reinstall your computer before it goes online. Or just keep a spare laptop dedicated to your offline Bitcoin Core, so you can easily get new deposit addresses in the future.
member
Activity: 158
Merit: 28
July 04, 2022, 10:59:48 PM
#3
I wanted to know if it's enough for me to simply backup the wallet.dat file on an encrypted USB stick?
Since bitcoin core doesn't support mnemonics that you could write down, the only option is to digitally store the wallet file itself. However, you may want to create more than one backup so that in case you lost the USB stick or it was damaged you could still recover your funds.

Quote
I also wonder, if this wallet.dat file is stolen by someone, but my wallet was encrypted, is the wallet.dat file encrypted? Or was that just a local encryption for my desktop.
The file itself is encrypted.

Quote
I would love to just be able to store my holy wallet.dat file away for many years and be able to re-gain access to my wallet using this file, primarily through other wallets too if Bitcoin Core wallet seizes to exist by then.
That should never happen considering that bitcoin core is the reference implementation of Bitcoin. But it is open source and many people are using it, so it would be trivial to write a simple script that decrypts and extracts the keys inside the wallet file to be used elsewhere.

Quote
And perhaps it's also possible, or necessary to store individual private keys in text on a seperate device such as an encrypted USB stick?
That's an overkill in my opinion.

Quote
I was thinking the private keys could be encoded in an encoding language to make them slightly extra secure incase any thief has no idea what he's doing.
A different encoding would provide no security if the thief knows he is stealing a bitcoin wallet.
Only a strong encryption can provide security.

Thanks a lot for your responses, very helpful.
legendary
Activity: 3472
Merit: 10611
July 04, 2022, 10:11:43 PM
#2
I wanted to know if it's enough for me to simply backup the wallet.dat file on an encrypted USB stick?
Since bitcoin core doesn't support mnemonics that you could write down, the only option is to digitally store the wallet file itself. However, you may want to create more than one backup so that in case you lost the USB stick or it was damaged you could still recover your funds.

Quote
I also wonder, if this wallet.dat file is stolen by someone, but my wallet was encrypted, is the wallet.dat file encrypted? Or was that just a local encryption for my desktop.
The file itself is encrypted.

Quote
I would love to just be able to store my holy wallet.dat file away for many years and be able to re-gain access to my wallet using this file, primarily through other wallets too if Bitcoin Core wallet seizes to exist by then.
That should never happen considering that bitcoin core is the reference implementation of Bitcoin. But it is open source and many people are using it, so it would be trivial to write a simple script that decrypts and extracts the keys inside the wallet file to be used elsewhere.

Quote
And perhaps it's also possible, or necessary to store individual private keys in text on a seperate device such as an encrypted USB stick?
That's an overkill in my opinion.

Quote
I was thinking the private keys could be encoded in an encoding language to make them slightly extra secure incase any thief has no idea what he's doing.
A different encoding would provide no security if the thief knows he is stealing a bitcoin wallet.
Only a strong encryption can provide security.
Pages:
Jump to: