Security is always excessive until it’s not enough. — Robbie Sinclair, Head of Security, Country Energy, NSW Australia
You should always regularly backup your wallet files, and have multiple backups stored on various media and locations. It’s also a good idea to backup your data directory prior to using newer wallet versions. Though many times you will be warned if this is a necessary action. Here we’ll go over the steps needed to perform different types of backups.
The safest way to backup your wallet files is by using the wallet itself.
Each unit has its own wallet file
Each unit has a separate wallet file. You must make sure to make separate backups for each unit. If you only backup your NuBits wallet, then you must still back up your NuShares wallet.
Remember to do this for all units (NuShares, NuBits, etc). You can see which unit you’re backing up by clicking the “Unit” menu option. You can also change units from here as well to back up others.
backupwallet
command to backup the wallet from the daemon. Provide the location and file name as a parameter where you would like it to be backed up../nud backupwallet "/path/to/location/walletS.dat"
This command will backup your NuShares wallet by default. To back up other unit wallets you must supply the unit flag with the unit code. The example below shows how to backup your NuBits wallet.
./nud --unit=B backupwallet "/path/to/location/walletB.dat"
On some occasions you may not be able to start up the Nu application, so you’ll be unable to backup your wallet files from it using the steps above. In those instances you can use the next best option which is to copy the wallet files from the data directory. You should never do this while the Nu application is running. Always shut down Nu first.
In some cases you’ll want to back up your entire data directory which contains your wallet files, blockchain, and other data required by Nu to run. Follow the steps to create a backup of the data directory.