Pcornel
Automation · Network Automation

Configuration Backup

Cheat sheet · https://pcornel.dk/topic.php?topic=5596

Back to the Topic

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 configs
  • git -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

BoundaryHealthy evidenceSuspicious evidence
Intent / scopeSource revision and exact targets are explicitStale inventory, hidden selector or wrong variables change scope
Management operationTransport/model/payload and per-device response are traceableAuth/capability/parser differences hide partial or wrong execution
Device stateEffective and persistent state are read backAccepted config/API result is mistaken for convergence
Network proofOriginal control/data-plane or service test passesAutomation 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

Confirmation

Confirm action

Continue?