# How should you backup your wallet?

• How often? Is backing it up once enough?
• Any best practices to storing the backup?

The file you'll need to back up is wallet.dat which can be found in %appdata%\roaming\bitcoin on Windows or ~/.bitcoin on Linux/MacOSX.

By default a pool of 100 pre-generated, unused addresses is maintained in your wallet, and so it is safe to use 100 new addresses without backing up your wallet. New addresses are used most times you send bitcoins and used as a "change" address, and also when you request a new receiving address. As you use new addresses, more are generated and added to the end of the pool. Once you've used 100 since backing up, you'll start using addresses which aren't in the backup. To this end, the frequency of your backups is largely determined by the frequency of your transactions and this is largely a personal decision. If you absolutely cannot manage a backup every 100 transactions (why?) or are comfortable with a more aggressive schedule (and smaller wallet) there is a -keypool option to change the number of addresses pre-generated.

Best practices for storing wallet backups almost always include encryption. Most folks in the community swear by tools like TrueCrypt for such purposes, though there are countless alternatives. Storage of the backup depends largely on how long-term the storage is intended to be and the security levels necessary. For small amounts of coin and short-term backups, online services like DropBox or Mozy might be adequate, assuming the wallet is encrypted before uploading. For longer-term or higher security backup, coins might be sent to an offline wallet stored in paper form at a physically secured location or any variation between.

Regardless of your wallet backup methodology and schedule, it is ALWAYS a good idea to take some basic measures to secure your wallet.

• Aren't addresses generated in chunks of about a 100 and cached? So, you should only backup every ~50 transactions. – ripper234 Sep 8 '11 at 6:14
• You're correct, amending my answer. – David Perry Sep 8 '11 at 6:16
• Even with the deterministic wallets we sort of already have backing up once is enough so long as you never perform any sends. Basically the tech we have in that arena is adequate for "savings" type accounts, but we're not there yet for "checking" type accounts. – David Perry Sep 8 '11 at 6:23
• The keypool isn't generated "in blocks of 100 addresses", it's maintained at 100 addresses. Every time you use one of the 100, another is generated to replace it. – Chris Moore Feb 5 '12 at 18:35
• This answer could do with updating to mention that the standard client can now encrypt the wallet. – Highly Irregular Oct 2 '12 at 4:50

Encrypted; to more than one place convenient to you: hard drive, pendrive, cloud. Some store it on paper but that's another school.