Synopsis
fishnet restore.
Arguments
Path where the backup file should be written. If not specified, uses the default backup directory with a timestamp.
Examples
Create backup with default location
Create backup at custom location
Create backup before risky operation
Behavior
- Locates the credential vault database file
- Copies the encrypted database to the backup location
- Creates parent directories if they don’t exist
- Sets file permissions to owner-only (mode 0600)
- Does not require the master password (file is already encrypted)
Default backup location
Linux:Error messages
Vault not found:fishnet init first.
Failed to create backup directory:
Exit codes
- 0 - Backup created successfully
- 1 - Error occurred (vault not found, permission denied, etc.)
Security notes
- Backup files are encrypted with the same master password as the original vault
- Store backups in a secure location (encrypted disk, secure cloud storage, etc.)
- Backup files have owner-only permissions (0600) to prevent unauthorized access
- Consider keeping multiple backups with different timestamps
Related commands
- fishnet restore - Restore a vault backup
- fishnet list-keys - Verify credentials after restore
- fishnet init - Initialize a new vault