The restore command is automatically available system-wide after installing ReStore through the MSIX package.
To disable the CLI usage (if not needed):
- Open Windows Settings → Apps → Advanced app settings → App execution aliases
- Find restore.exe in the list
- Toggle it Off
Monitor directories for changes and backup automatically:
restore --serviceBackup a specific directory (uses configured storage from config.json):
restore backup "C:\Users\YourName\Documents"
# Or override storage type
restore backup "C:\Users\YourName\Documents" --storage gdriveThe backup pipeline writes chunked snapshot artifacts:
- Snapshot manifests under
snapshots/<group-key>/...manifest.json - Snapshot head pointer at
snapshots/<group-key>/HEAD - Deduplicated chunks under
chunks/<prefix>/<chunk-id>.chunk
Restore from a snapshot manifest or HEAD path:
restore restore "snapshots/documents_abcd1234ef567890/HEAD" "C:\Restore\Documents"
restore restore "snapshots/documents_abcd1234ef567890/snapshot_20260101010101_abcdef.manifest.json" "C:\Restore\Documents"Verify manifest and chunk-store integrity without restoring files:
restore verify "snapshots/documents_abcd1234ef567890/HEAD"
restore verify "snapshots/documents_abcd1234ef567890/snapshot_20260101010101_abcdef.manifest.json" --storage s3Verification checks:
- Manifest root hash validation
- Chunk existence and content-hash validation
- Reconstructed file hash and size validation
The command exits with a non-zero exit code if validation fails.
Backup installed programs, environment variables, and Windows settings:
# Backup all components (uses configured storage per component)
restore system-backup all
# Backup specific components
restore system-backup programs
restore system-backup environment
restore system-backup settings
# Override storage for specific backup
restore system-backup programs --storage githubRestore system components:
restore system-restore "system_backups/programs/programs_backup_<timestamp>.zip" programs
restore system-restore "system_backups/environment/env_backup_<timestamp>.zip" environment
restore system-restore "system_backups/settings/settings_backup_<timestamp>.zip" settingsWhen encryption is enabled, the CLI prompts for your password during restore and verify operations:
# Restore encrypted chunk snapshot
restore restore "snapshots/documents_abcd1234ef567890/HEAD" "C:\Restore\Documents"
# Verify encrypted chunk snapshot
restore verify "snapshots/documents_abcd1234ef567890/HEAD"
# Restore encrypted system backups (will prompt for password)
restore system-restore "system_backups/programs/programs_backup_20250817.zip.enc" programs
restore system-restore "system_backups/environment/env_backup_20250817.zip.enc" environment
restore system-restore "system_backups/settings/settings_backup_20250817.zip.enc" settingsFor non-interactive use, set RESTORE_ENCRYPTION_PASSWORD before running the command.