Skip to main content

dvs archive restore

Restore an application from archive.

Syntax​

dvs archive restore [id|latest] --storage <name> [options]

Options​

Selection​

OptionDescription
--storage <name>Storage to restore from (required)
idArchive ID to restore
latestRestore most recent archive

Restore Options​

OptionDescription
--applyAuto-apply restored files
--no-configDon't restore config files
--password <pass>Decrypt with password

New App (outside app context)​

OptionDescription
--path <dir>Host directory for new app
--name <app_name>Name for the new app

Examples​

In App Context​

# Interactive selection
dvs archive restore --storage backup

# Restore latest
dvs archive restore latest --storage backup

# Restore specific archive
dvs archive restore myapp-20250108-143052 --storage backup

Create New App from Archive​

dvs archive restore myapp-20250108-143052 \
--storage backup \
--path ~/apps/restored-app \
--name restored-app

Restore Flow​

  1. Download archive from storage
  2. Decrypt (if encrypted)
  3. Extract files to temporary location
  4. Preview changes
  5. Apply files (if --apply or confirmed)
  6. Import database (if included)