I'm almost certain that backupwallet makes a cleartext backup of the current wallet. What makes it useful is that it can be called while Bitcoin is running and has the wallet open, without worry of corruption.
yeah I want to encrypt these first using GPG then upload them to a server using SCP.
However because I want to make it easy, I'm thinking the program would upload the GPG private key in case you ever lost it.
First time install:
- User enables auto-backups.
- Program prompts user to create a new account.
- Program creates a new GPG key for wallet encryption with the id 'bitcoin-wallet-backup'.
- Program uploads GPG private key.
Periodically, after every SEND or NEW-ADDRESS:
- backupwallet to /tmp
- Encrypt & sign wallet using private key.
- Upload to server using SCP.
- Server rejects wallet if signature is incorrect.
Restore wallet:
- Program checks for GPG key 'bitcoin-wallet-backup'.
- If not found then popup dialog asking for username/password & download GPG private key.
- User can download encrypted wallet from public HTTP store (
http://blaa/myusername/latest-wallet.dat.enc )
Suggestions?