Recovery Quick Reference
|
Print this page and store with your LUKS USB backup. |
Emergency Recovery Order
| Step | What | Command |
|---|---|---|
1 |
Mount LUKS USB |
|
2 |
Restore age key |
|
3 |
Restore SSH keys |
|
4 |
Clone secrets repo |
|
5 |
Load credentials |
|
6 |
Verify |
|
Critical Infrastructure IPs
| System | IP | Purpose |
|---|---|---|
NAS-01 |
10.50.1.70 |
Backup storage, Borg repos |
Vault-01 |
10.50.1.60 |
PKI, SSH CA, secrets |
pfSense |
10.50.1.1 |
Firewall, DNS forwarder |
home-dc01 |
10.50.1.50 |
AD DS, LDAP auth |
ISE-02 |
10.50.1.21 |
802.1X, RADIUS |
KVM-01 |
10.50.1.110 |
Hypervisor |
Backup Commands
Daily Infrastructure Backup
dsource d000 dev/network
netapi ise backup --upload-nas
netapi wlc backup --upload-nas
netapi pfsense backup --upload-nas
netapi ios backup --all --upload-nas
netapi kvm backup --all --upload-nas
Recovery Commands
From Borg
# List archives
sudo BORG_PASSPHRASE="$BORG_PASSPHRASE" borg list /mnt/synology/borg-repo
# Mount and browse
sudo BORG_PASSPHRASE="$BORG_PASSPHRASE" borg mount /mnt/synology/borg-repo::ARCHIVE /tmp/borg-mount
# Extract single file
sudo BORG_PASSPHRASE="$BORG_PASSPHRASE" borg extract /mnt/synology/borg-repo::ARCHIVE home/evanusmodestus/path/to/file
Credential Locations
| Credential | Location |
|---|---|
age master key |
|
SSH keys |
|
GPG keys |
|
gopass store |
|
dsec vaults |
|
LUKS passphrases |
|
Borg passphrase |
|
Verification Commands
# Verify age key works
age -d -i ~/.secrets/.metadata/keys/master.age.key ~/.secrets/test.age
# Verify SSH access
ssh nas-01 hostname
# Verify dsec works
dsec show d000 dev/network
# Verify Borg repo
sudo BORG_PASSPHRASE="$BORG_PASSPHRASE" borg check /mnt/synology/borg-repo
If All Else Fails
-
Retrieve M-Disc from fireproof safe
-
Boot from Arch Linux live USB
-
Mount M-Disc:
sudo mount /dev/sr0 /mnt/cdrom -
Extract P0-CRITICAL first (contains age key)
-
Follow recovery order above
Related
-
Credential Chain - Full recovery chain
-
Borg Backup - Workstation backup details
-
Seagate Primary - USB backup details
-
M-Disc Archival - Cold storage