Configuration Backup
Cheat sheet · https://pcornel.dk/topic.php?topic=5596
Answer
Configuration backup copies every device's configuration off the device on a schedule, with name, time and a way to compare versions — so a change can be undone and a replaced device restored.
Remember
A backup that is never checked will be missing when needed: watch for devices that were skipped. Store copies off the device (Git, a server), not only in flash. Passwords and keys in the copies must be protected. Test a restore now and then.
First checks
ansible-playbook backup.yml— collect running configsgit -C configs log --oneline -5— versioned backups- Backup failure alerts — coverage
Commands
sha256sum <backup-file>- Read-only/validation observation for a deterministic content hash for the selected backup/configuration artifact.
show running-config
Verify in this order
devices → collect config → git commit → diff/alerts
Where it usually breaks
A retained configuration snapshot proves captured text/data at a point in time, not that it is complete, current, secret-safe or directly restorable.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Configuration Backup Network Automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5596