{"repo":"mcarneir0/fortigate-backup-api","free":true,"listed":false,"github":"https://github.com/mcarneir0/fortigate-backup-api","clone":"git clone https://github.com/mcarneir0/fortigate-backup-api.git","description":"Perform automated Fortigate backups with Python and firewalls' API key","language":"Python","stars":20,"topics":["backup","fortigate","fortigate-api","fortigate-automation","python","rest-api","fortios","requests","api","logging"],"license":"GPL-2.0","category":"api-integrations-sdks","readme_excerpt":"Fortigate Config Backup Tool This simple script makes it easy to perform backups of several Fortigate firewalls. It reads a list of Fortigates from a CSV file, performs a backup of each one and saves the backup file in a local directory. Summary - Installation - Usage - Debug mode - Configuration - CSV file - SSL certificate - Project structure - Generating API key 1. Access the firewall 2. Create REST API user 3. Super admin permission - Support for - References - License Installation Requirements - Python 3.8 or newer - Requests module Clone the project Go to project folder. Install dependencies. Usage Add the details of each Fortigate to backup in the fortigates.csv file and then you can perform the backup in two ways: 1. Run the fgt-backup.py file to perform a backup of all Fortigates without user input. Useful for use with cron job or scheduled tasks. 2. Run the manual-backup.py file to display a list of all Fortigates and then select which Fortigates will be backed up. Debug mode Additionally, you can use the -d or --debug option to enable debug logging. Configuration CSV file format The fortigates.csv file should have the following format: [!TIP] FQDN addresses can be used too! Where: - name : A name to identify the Fortigate - ip 1 : Primary IP/FQDN address of the Fortigate - ip 2 : Secondary IP/FQDN address of the Fortigate (optional) - apikey : API key provided by the Fortigate Notes: 1. If you are using a custom administrative port (other than 443) you should inclu","default_branch":null,"files":null,"tree":[],"storefront":"/r/mcarneir0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mcarneir0/fortigate-backup-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}