backup
Create an encrypted backup of your projects.
The backup command exports all your projects and secrets to an encrypted backup file. This is useful for disaster recovery, migration, or archiving.
Usage#
redenv backupOptions#
| Flag | Description | Default |
|---|---|---|
-o, --output <file> | Output file path | redenv-backup.enc |
-p, --project <name> | Backup a single project only | All projects |
Examples#
# Backup all projects
redenv backup
# Backup to specific file
redenv backup --output ~/backups/redenv-2026-02-01.enc
# Backup single project
redenv backup --project my-appInteractive Flow#
$ redenv backup
? Create a password for this backup file: ********
? Confirm backup password: ********
⠋ Discovering all projects...
⠋ Fetching data for all projects...
⠋ Encrypting backup data...
✔ Successfully created encrypted backup at redenv-backup.encWhat Gets Backed Up#
| Data | Included |
|---|---|
| Project metadata | Yes |
| All environments | Yes |
| All secrets | Yes |
| Version history | Yes |
| Service tokens | Yes |
Info
The backup password is separate from your Master Password. It must be at least 8 characters. Choose a strong, memorable password and store it securely.
Backup File Format#
The backup file is JSON containing:
| Field | Description |
|---|---|
version | Backup format version |
createdAt | ISO 8601 timestamp |
salt | Encryption salt (hex) |
encryptedData | AES-256-GCM encrypted payload |
Warning
Keep your backup password safe. Without it, the backup cannot be restored. Consider storing it in a password manager separate from the backup file.
Restoring#
Use the restore command to restore from a backup:
redenv restore redenv-backup.enc