restore

Restore projects and secrets from an encrypted backup file.

The restore command imports projects and secrets from a backup file created by backup.

Usage#

redenv restore <file>

Arguments#

NameRequiredDescription
fileYesPath to the backup file

Examples#

# Restore from backup in current directory
redenv restore redenv-backup.enc

# Restore from specific path
redenv restore ~/backups/redenv-2026-02-01.enc

Interactive Flow#

$ redenv restore redenv-backup.enc

? Enter the password for this backup file: ********
 Reading and decrypting backup file...
 Backup file decrypted successfully.

Backup file contains the following data:

  my-app
    - development
    - production
    - staging
    - (Project Metadata)

  another-project
    - development
    - (Project Metadata)

? This will overwrite any conflicting data in Redis. This action cannot be undone. Are you sure? Yes
 Restoring data to Redis...
 Successfully restored data for 8 keys.

What Gets Restored#

DataRestored
Project metadataYes
All environmentsYes
All secretsYes
Version historyYes
Service tokensYes

Warning

Existing data will be overwritten. If a project in the backup already exists in Redis, its data will be replaced with the backup version. This action cannot be undone.