Backup
Run a backup
Section titled “Run a backup”python -m src --task BACKUP --commands backup --backup --devices config/devices.csv --workers 20The --backup flag enables full running-config capture. Without it, only pre/post check snapshots are saved.
Output
Section titled “Output”Backups are saved to BACKUP/YYYY-MM/{hostname}_{timestamp}.cfg.
Retention
Section titled “Retention”Set backup.retention_days in config.yaml to automatically delete old backups:
backup: retention_days: 30 # 0 = keep allOverride per-run:
python -m src --task BACKUP --commands backup --backup --devices config/devices.csv --retention 60Diff two configs
Section titled “Diff two configs”python -m src --diff BACKUP/2026-04/CORE-SW-01_20260401.cfg BACKUP/2026-05/CORE-SW-01_20260501.cfg