Installation and Setup Guide
Installation and Setup Guide
This guide explains how to install and configure FGBackup.
Requirements
- Python 3.8+
- FortiGate devices with SSH or API access enabled
- Access credentials (username/password or API token)
- Optional: AWS S3 or Azure Blob for cloud storage
Installation Steps
- Clone the repository:
git clone https://github.com/Alpha3Cloud/FGBackup.git cd FGBackup
- Set up a virtual environment and install dependencies:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
- Configure your devices and storage:
- Edit
config/devices.yml
to list your FortiGate devices. - Update
config/storage.yml
for local or cloud backup targets.
- Edit
- Run a test backup:
python fgbackup.py --test
- Set up a scheduled job (Linux example with cron):
crontab -e # Add: 0 2 * * * /path/to/venv/bin/python /path/to/FGBackup/fgbackup.py --all-devices
FGBackup is now set up to run automated backups.