Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Azuriste
New Contributor

Script to Backup my all fortigate configurations

Hello , 

Im looking for a powershell script to backup the configuration of all my fortigates .i have fortigate 60D and 300D .

any help please ?

 

Regards,

10 REPLIES 10
Azuriste
New Contributor

any idea?

chall_FTNT

If you have a FortiManager, then you can use a CLI script with "exec backup".

Chris Hall
Fortinet Technical Support
Azuriste

we dont have a Fortimanager this is why im looking for a script

ergotherego

You may want to post into the FortiGate board. This is for FortiManager, the centralized management tool for FortiGates.

sw2090
Honored Contributor

without FortiManager you could switch the admin scp feature on

 

afair:

 

config system settings

  set admin-scp enable

end

 

or similar.

With that and SSH enabled on the interface you come into your FGT(s) you could get yourself a copy of the running config via scp. I once wrote a c# .net program that did that before we get our FMG...

-- 

"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams

-- "It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Azuriste

Im looking for powershell script if its possible

sw2090
Honored Contributor

There is some Powershell Code-Snipped for doing scp on the internet like here: https://www.nsoftware.com/kb/articles/psserver-scp.rst

 

 

-- 

"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams

-- "It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
Allan_Lago
New Contributor

Hello!

 

Please take a look at: https://github.com/Nevets82/Posh-FortiGate

 

Best Regards!

 

   Allan Lago

   Security Analist

   allan.lago@itsense.com.br

   +55 21 96436-1884

   +55 54 99100-0949

   https://itsense.com.br

Allan Lago Security Analist allan.lago@itsense.com.br +55 21 96436-1884 +55 54 99100-0949 https://itsense.com.br
Azuriste

this script for 100D fortigate and not for 300D one

Labels
Top Kudoed Authors