recover
Full disaster recovery from a remote backup.
Usage
sh
mithrandir recover [--yes]Flags
| Flag | Description |
|---|---|
--yes, -y | Non-interactive mode, auto-proceed through all steps |
Description
Performs a complete system recovery on a fresh machine. Runs a 9-step process:
- Init — Validate environment
- Docker — Install Docker if needed
- rclone — Install rclone
- rclone-remote — Check configured rclone remotes (all remotes in
RCLONE_REMOTES) - base-dir — Create the base directory
- discover — Find available backups by trying each remote in order
- confirm — Select which backup to restore
- restoring — Download and extract backup archives
- systemd — Reinstall systemd timer for scheduled backups
Notes
- Requires root privileges
- Supports both interactive (TTY) and headless (non-TTY) modes
- Designed to be run on a fresh Debian/Ubuntu installation
- When multiple remotes are configured in
RCLONE_REMOTES, recover uses the first reachable remote to discover and download backups