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 backup

Options#

FlagDescriptionDefault
-o, --output <file>Output file pathredenv-backup.enc
-p, --project <name>Backup a single project onlyAll 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-app

Interactive 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.enc

What Gets Backed Up#

DataIncluded
Project metadataYes
All environmentsYes
All secretsYes
Version historyYes
Service tokensYes

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:

FieldDescription
versionBackup format version
createdAtISO 8601 timestamp
saltEncryption salt (hex)
encryptedDataAES-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
  • restore - Restore from backup
  • export - Export to .env file (single environment)