FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
akumarr
Staff
Staff
Article Id 190361

Description

 

This article explains how to back up & restore the config file from an FTP server.

Solution

 

Commands for backing up the config to an FTP are mentioned below:

 

execute backup full-config ftp {string} {ftp server}[:ftp port] {user}{passwd}{passwd}

{string}                                     <----- Configure file name (path) on the remote server.

{ftp server}[:ftp port]            <----- FTP server IP or FQDN, can be attached with port.

{user} {passwd}                         <----- FTP username followed by the password.               

{passwd}                      <----- Optional password to protect the backup content.                                                                                                                        

 Find the below-mentioned example from CLI:

 

execute backup full-config ftp backup.conf 172.31.132.105:21 test 123456 test123

This operation will overwrite the current setting and could possibly reboot the system!
Do you want to continue? (y/n)y
Please wait...
Connect to ftp server 172.31.132.105:21 ...
Get config file from ftp server OK.
File check OK.

 

backup.conf is the config file name, 172.31.132.105 is the IP address of the FTP server and 21 is the port number followed by the username test, password 123456 & test123 as encryption password.


Commands for restoring the config from FTP are mentioned below:

 

execute restore config ftp {string}   {ftp server}[:ftp port] {user} {passwd}

{string}                                     <----- Configure file name (path) on the remote server.

{ftp server}[:ftp port]            <----- FTP server IP or FQDN, can be attached with port.

{user} {passwd}                          <----- FTP username followed by the password.       

                                                                                                                                               

 Below is mentioned an example from CLI:

 

execute restore config ftp backup.conf 172.31.132.105:21 test 123456

This operation will overwrite the current setting and could possibly reboot the system!
Do you want to continue? (y/n)y
Please wait...
Connect to ftp server 172.31.132.105:21 ...
Get config file from ftp server OK.
File check OK.

 

backup.conf is the config file name, 172.31.132.105 is the IP address of the FTP server and 21 is the port number followed by the username test and password 123456.

 

Related documents:

Configuration backups 7.0.1

Configuration backups 7.4.0