Usage Guide

This guide explains how to run backups, track success, and restore configurations.

Running Backups

  • To back up a single device:
    python fgbackup.py --device <device_name>
    
  • To back up all devices:
    python fgbackup.py --all-devices
    
  • To run with verbose logging:
    python fgbackup.py --all-devices --verbose
    

Restoring Configurations

  1. Identify the desired backup from the backups/ folder (or cloud storage).
  2. Push the backup to the device:
    python fgbackup.py --restore <device_name> --file backups/device_name/config-YYYYMMDD.conf
    
  3. FGBackup will validate and apply the configuration.

Notes

  • Always validate the diff before restoring:
    python fgbackup.py --diff <device_name> --file backups/device_name/config-YYYYMMDD.conf