Bitcoin Forum
April 26, 2024, 09:47:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to take proper backup  (Read 222 times)
ironfeast (OP)
Newbie
*
Offline Offline

Activity: 18
Merit: 0


View Profile
September 25, 2018, 11:32:26 AM
 #1

Hi there,

I am using Bitcoin Core with RPC and have connected few accounts to it with a web wallet. Now I want to take regular backup everyday, but what should i back up from data directory, only the wallet.dat file or the whole data directory.

I want all the balances. transactions and pending transactions to be preserved safly. Please advise what kind of backup I should make.

Warm Regards
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714168027
Hero Member
*
Offline Offline

Posts: 1714168027

View Profile Personal Message (Offline)

Ignore
1714168027
Reply with quote  #2

1714168027
Report to moderator
1714168027
Hero Member
*
Offline Offline

Posts: 1714168027

View Profile Personal Message (Offline)

Ignore
1714168027
Reply with quote  #2

1714168027
Report to moderator
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7407


Crypto Swap Exchange


View Profile
September 25, 2018, 12:19:19 PM
Merited by Jet Cash (2)
 #2

All balances, transactions and pending transactions are "stored" on all bitcoin nodes so you don't need to worry about that.

So all you need to backup is all of wallet.dat that you have and make sure your server is secure (such as strict firewall rules and add password to your RPC) and you place the backup on safe place.
You might want to backup whole blockchain and UTXO DB (blocks and chainstate folder) just in case when your storage drive is broken, so you can sync faster (and thus have less downtime).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mocacinno
Legendary
*
Offline Offline

Activity: 3374
Merit: 4918


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 25, 2018, 12:20:44 PM
 #3

All balances, transactions and pending transactions are "stored" on all bitcoin nodes so you don't need to worry about that.

So all you need to backup is all of wallet.dat that you have and make sure your server is secure (such as strict firewall rules and add password to your RPC) and you place the backup on safe place.
You might want to backup whole blockchain and UTXO DB (blocks and chainstate folder) just in case when your storage drive is broken, so you can sync faster (and thus have less downtime).

Agreed,

I only wanted to add that the default setting of recent versions of bitcoin core is to generate HD wallets. If you have a HD wallet, you only need to take a backup once (unless you encrypt your wallet, in this case you have to take a new backup after encryption).

If you used an old wallet.dat, or if you explicitly started core with the flag telling it not to create a HD wallet (either from the cli or in the bitcoin.conf by using or setting usehd=0) you NEED to create a backup every time your wallet created x new addresses. The x is determined by the keypool size (default: 100)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 29, 2018, 06:05:07 AM
 #4

I want all the balances. transactions and pending transactions to be preserved safly. Please advise what kind of backup I should make.

All you need to backup to be able to access your coins again, are your private keys.

The private keys (and additional information) are stored inside the wallet.dat. That's all you need to backup.


But a proper backup isn't only determined by what to backup, but also by how.

Make sure to never store your backup on a PC connected to the internet (less risk of it getting compromised).
Don't store your backup on the same machine running your wallet (risk of getting destroyed through ransomware or lightning strike, HD failure, etc..)
Keep multiple copies of your backup (especially if you only store them digitally) spread across different devices NOT attached to the internet.

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!