You can use any of those methods:
backup the mnemonic seed, a 25 word list of words that encode your private keys. This is the simplest way, and you can then restore your wallet with monero-wallet-cli --restore-deterministic-wallet
later. After creating a wallet, you can obtain its seed with the seed
command in monero-wallet-cli.
backup the keys file and the password you saved it with.
backup the private spend and view keys. You can then restore your wallet with monero-wallet-cli --restore-from-keys
. After creating a wallet, you can obtain its keys with the spendkey
and viewkey
commands in monero-wallet-cli.
Note that when you restore a wallet, you lose all information about tx keys (needed if you want to prove payment later), any tx notes you saved in monero-wallet-cli, and extra information on outgoing transactions (such as the destinations addresses).