Backing up the configuration using the GUI:
- Click on admin in the upper right-hand corner of the screen and select Configuration > Backup.
- Direct the backup to your Local PC or to a USB Disk.
The USB Disk option will be grayed out if no USB drive is inserted in the USB port. You can also backup to the FortiManager using the CLI.
- If VDOMs are enabled, indicate whether the scope of the backup is for the entire FortiGate configuration (Global) or only a specific VDOM configuration (VDOM).
- If backing up a VDOM configuration, select the VDOM name from the list.
- Select Encryption.
Encryption must be enabled on the backup file to back up VPN certificates.
- Enter a password and enter it again to confirm it. You will need this password to restore the file.
- Select OK.
- The web browser will prompt you for a location to save the configuration file. The configuration file will have a .conf extension.
Backing up the configuration using the CLI:
Use one of the following commands:
execute backup config management-station <comment>
or:
execute backup config usb <backup_filename> [<backup_password>]
or for FTP, note that port number, username are optional depending on the FTP site:
execute backup config ftp <backup_filename> <ftp_server> [<port>] [<user_name>] [<password>]
or for TFTP:
execute backup config tftp <backup_filename> <tftp_servers> <password>
Use the same commands to backup a VDOM configuration by first entering the commands:
config vdom
edit <vdom_name>
Restoring the configurations:
To restore the FortiGate configuration – GUI:
- Click on admin in the upper right-hand corner of the screen and select Configuration > Restore.
- Identify the source of the configuration file to be restored : your Local PC or a USB Disk.
The USB Disk option will be grayed out if no USB drive is inserted in the USB port. You can restore from the FortiManager using the CLI.
- Enter the path and file name of the configuration file, or select Browse to locate the file.
- Enter a password if required.
- Select Restore.
To restore the FortiGate configuration – CLI:
execute restore config management-station normal 0
or:
execute restore config usb <filename> [<password>]
or for FTP, note that port number, username are optional depending on the FTP site:
execute restore config ftp <backup_filename> <ftp_server> [<port>] [<user_name>] [<password>]
or for TFTP:
execute restore config tftp <backup_filename> <tftp_server> <password>
The FortiGate will load the configuration file and restart. Once the restart has completed, verify that the configuration has been restored.