When to back up
- After a large import or migration
- When you add or update several credentials
- Before performing firmware experiments or a factory reset
- Prior to shipping the device or storing it long-term
Backup formats
Format | Description | Use case |
---|---|---|
CSV (backup.csv ) | Human-readable, comma-separated rows | Quick manual edits or spreadsheet review (remember the file is plain text). |
Encrypted archive (backup.zkx ) | AES-128 encrypted using your Master PIN | Created via the CLI utility for long-term cold storage. |
Exporting from the device
- Unlock ZeroKeyUSB.
- Navigate to Menu → Backup → Export.
- Connect the device to your computer with a trusted USB cable.
- Start the web manager or the
zerokeyusb-cli
in listen mode:
- Confirm the export on the device by holding the center touch sensor.
- The firmware streams each credential as a CSV line:
slot,site,username,password,totp
.
EOF
. The host utility saves the file and verifies checksum totals to detect transmission errors.
Storing the backup
- Rename the file with the current date, e.g.,
2024-07-zerokeyusb.csv
. - Encrypt it using a tool you trust (
gpg
,age
, password-protected ZIP, etc.). - Keep at least two copies in separate secure locations (e.g., encrypted USB drive + printed and sealed copy).
- Delete any temporary unencrypted versions from your downloads folder.
Restoring a backup
- Unlock the device and ensure it shows the main menu.
- Run the CLI restore command:
- The tool parses the file and sends one slot at a time using the
IMPORT
serial command. - On the device, hold the center pad to approve overwriting each occupied slot.
- Wait for the
Restore complete
confirmation both on the host and on ZeroKeyUSB.
.zkx
archive, decrypt it locally first before running the restore command.
Verifying the restore
After the process finishes:- Browse a few credentials to confirm they match the backup.
- Trigger the TOTP screen (if used) to ensure secrets were restored correctly.
- Optionally perform a quick login test on a non-critical account.
Automating regular backups
To avoid forgetting, schedule a reminder or a cron job that runszerokeyusb-cli export
monthly. Store the resulting file in an encrypted location and prune older versions according to your security policy.
With disciplined backups you can recover quickly from hardware loss without compromising the ZeroKeyUSB offline security model.