Skip to main content
Create a backup of an instance’s database files. This command:
  1. Creates an atomic snapshot of the LMDB database
  2. Copies data.mdb and lock.mdb to the backup directory
  3. Warns if backup size exceeds 10GB and prompts for confirmation

Usage

helix backup [INSTANCE] [OPTIONS]

Arguments

ArgumentDescription
INSTANCEThe instance to backup

Available flags

FlagTypeDescription
--output, -oStringOutput directory for the backup. Defaults to ./backups/backup-<timestamp>/

Examples

# Backup the 'dev' instance to default location
helix backup dev

# Backup to a specific directory
helix backup dev --output /path/to/backup