dvs backup restore
Restore from a backup snapshot.
Syntaxβ
dvs backup restore [id|latest] --storage <name> [options]
Selection Optionsβ
| Option | Description |
|---|---|
--storage <name> | Storage to restore from (required) |
id | Snapshot ID to restore |
latest | Restore most recent snapshot |
Restore Optionsβ
| Option | Description |
|---|---|
--files | Restore application files |
--db | Restore database |
--config | Restore app configuration |
--remotes | Restore remotes configuration |
--all | Restore everything |
--extract | Extract to folder without applying |
--target <path> | Destination for --extract mode |
Examplesβ
# Interactive selection
dvs backup restore --storage backup
# Restore latest, files and database
dvs backup restore latest --storage backup --files --db
# Restore everything
dvs backup restore abc123de --storage backup --all
# Extract to folder for inspection
dvs backup restore latest --storage backup --extract --target ~/restore-preview
Restore Flowβ
- Select snapshot (interactive or specified)
- Download from restic repository
- Decrypt and decompress
- Apply selected components:
- Files: Copy to app directory
- Database: Import dump
- Config: Restore configuration
Safetyβ
- Files are restored in-place (existing files overwritten)
- Database is replaced entirely
- Use
--extractto preview before applying