Automation · Rollback & Recovery
Configuration Backup
Cheat sheet · https://pcornel.dk/topic.php?topic=5949
Answer
Configuration backup saves the current configuration before a change, such as copying running configs to Git or exporting settings, so the previous state can be restored exactly.
Remember
- Back up configuration before every change.
- Store backups in Git or an archive.
- Test restoring a backup.
First checks
ansible-playbook backup.yml— backup configs- Backup before every change (automated) — restore point
- Restore test — proof
Commands
sha256sum <backup-file>- Read-only/validation observation for a deterministic content hash for the selected backup/configuration artifact.
Verify in this order
pre-change backup → change → restore if needed
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5949