Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 576 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 576 Bytes

forti-backup

howto backup a fortinet appliance ?

you need an IP:PORT and a TOKEN ..

environment

  • ip:port off appliance, required via FORTI_APPLIANCE
  • token to access, required via FORTI_TOKEN
  • product type, default "fortinet", optional, FORTI_PRODUCT
  • scope, default "global", optional, FORTI_SCOPE

hint

  • make sure the API User has "write" access for "system"
  • https everywhere

usage

export FORTI_APPLIANCE='127.0.0.1:443'
export FORTI_TOKEN='1fNp5ff7z0q34bsrg8Qxm96pHdNyaf'
./backup-fortinet-appliance.py ./ && echo DONE || echo ERROR