linux-disaster-recovery

Installation
SKILL.md

Disaster Recovery

Distro support

Two-family skill. Backup/restore strategy and systemd rescue/emergency targets are identical; recovery-time tooling differs at a few critical points — get these wrong and a box won't boot. Body uses Debian/Ubuntu; substitute per this matrix.

Recovery concept Debian/Ubuntu RHEL family
Reinstall packages apt install --reinstall dnf reinstall
Regenerate GRUB update-grub grub2-mkconfig -o /boot/grub2/grub.cfg
GRUB config path /boot/grub/grub.cfg /boot/grub2/grub.cfg (UEFI: /boot/efi/EFI/<distro>/)
Rebuild initramfs update-initramfs -u dracut -f
Default root FS / repair ext4 → e2fsck xfs → xfs_repair (xfs can't shrink)
Restore networking Netplan NetworkManager/nmcli
Restore firewall ufw firewalld
Rescue target systemctl rescue identical
Installs
5
GitHub Stars
7
First Seen
Sep 3, 2026