Creating Wallet Backups
Always use thebackupwallet RPC command or the GUI backup feature to ensure the wallet file is in a consistent state during backup.
Using RPC
Using the GUI
Select the Wallet
Choose the wallet you want to backup from the
Wallet dropdown in the upper right corner. If the wallet isn’t loaded, open it via File > Open Wallet.Never Copy Wallet Files Directly
Backup Storage Best Practices
Multiple Secure Locations
Store backup files in multiple locations:- External hard drives or USB drives (kept offline)
- Encrypted cloud storage (with strong encryption)
- Physical safe or safety deposit box
- Geographically distributed locations for disaster recovery
Offline Storage
Keep at least one backup on a device that is never connected to the internet. This protects against:- Malware and ransomware
- Remote attacks
- Compromised online storage services
Encryption
If storing backups in potentially insecure locations:- Encrypt your wallet with a strong passphrase before backing up
- Use additional file encryption (e.g., GPG, VeraCrypt) for the backup file
- Store passphrases separately from backup files
Regular Testing
Periodically verify that your backups can be restored:- Test restoration on a separate system or testnet
- Verify you have all necessary passphrases
- Check that backup media hasn’t degraded
Backup Frequency
How often you need to backup depends on your wallet type:HD Wallets (Recommended)
For HD wallets created since Bitcoin Core 0.13: Single Backup Sufficient All future keys are derived from the HD seed, so a single backup can recover all coins received at any time. Regular Backups for Metadata While a single backup recovers funds, regular backups preserve metadata:- Address labels
- Transaction notes
- Account organization
Non-HD Legacy Wallets (Deprecated)
For very old wallets created before Bitcoin Core 0.13: Frequent Backups Required Backup every 100 keys used, or more frequently. If you restore from an old backup, any keys generated after that backup are lost forever.After Encryption Events
Restoring from Backup
Use therestorewallet RPC command or the GUI restore feature to recover a wallet from a backup file.
Using RPC
Using the GUI
Name the Wallet
Provide a name for the restored wallet. This can be different from the original name.
Verifying Restoration
After restoration, verify the wallet is complete:- Balance matches expectations
- Transaction count is reasonable
- HD seed is present (for HD wallets)
Accessing the Restored Wallet
Load the restored wallet in the GUI:Special Considerations
Encrypted Wallet Restoration
When restoring an encrypted wallet:- You’ll need the passphrase to send funds
- The passphrase must be exactly as set originally
- There is no recovery mechanism for forgotten passphrases
Metadata Loss
When restoring from old backups:- Funds are recovered: All coins are accessible
- Metadata is lost: Address labels and transaction notes created after the backup are gone
- Cannot be recovered: Metadata is not stored on the blockchain
Malware Risks
Backup Checklist
Before storing significant funds in a wallet:- Create initial backup using
backupwalletor GUI - Store backups in at least 3 different secure locations
- Keep at least one backup completely offline
- Test restoration procedure on testnet or with small amounts
- Document passphrase securely (if encrypted)
- Set reminder for regular backup updates
- Verify backup media hasn’t degraded
Disaster Recovery Scenarios
Computer Failure
If your computer fails:- Install Bitcoin Core on a new system
- Use
restorewalletto recover from your backup - Wait for blockchain rescan to complete
- Verify balances and transaction history
Lost Passphrase
Stolen Device
If your device is stolen:- If your wallet was encrypted, funds are protected temporarily
- Immediately restore wallet on a new secure device
- Transfer all funds to a new wallet with a new passphrase
- Assume the old wallet is compromised
Corrupted Wallet File
If your wallet file becomes corrupted:- Do not attempt to repair it manually
- Restore from your most recent backup
- Accept potential loss of recent metadata
- All funds will be recovered (for HD wallets)
Backup Automation
Consider automating regular backups:Key Principles
- Multiple backups: Never rely on a single backup copy
- Offline storage: Keep at least one backup offline
- Regular testing: Verify backups can be restored
- Secure passphrases: Document them separately from backups
- Update after changes: New backup after encryption changes
- Clean restoration: Ensure malware-free systems for recovery