Skip to content

Backup

Terminal window
python -m src --task BACKUP --commands backup --backup --devices config/devices.csv --workers 20

The --backup flag enables full running-config capture. Without it, only pre/post check snapshots are saved.

Backups are saved to BACKUP/YYYY-MM/{hostname}_{timestamp}.cfg.

Set backup.retention_days in config.yaml to automatically delete old backups:

backup:
retention_days: 30 # 0 = keep all

Override per-run:

Terminal window
python -m src --task BACKUP --commands backup --backup --devices config/devices.csv --retention 60
Terminal window
python -m src --diff BACKUP/2026-04/CORE-SW-01_20260401.cfg BACKUP/2026-05/CORE-SW-01_20260501.cfg