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.
Anthony_E
Community Manager
Community Manager
Article Id 197697

Description


This article describes how to take backup and restore configuration file from a thumb drive (USB).

 

Scope

 

FortiGate.

Solution


To backup configuration using the CLI.

 

  1. Log into the CLI.
  2. Enter the following command to backup the configuration files:

 

 exec backup full-config usb <filename>

 

  1. Enter the following command to check the configuration files are on the key:

 

exec usb-disk list

 

Note.
The FortiGate automount most FAT and vFAT formatted usb drives with no problems.


To restore configuration using the CLI.

 

  1. Log from CLI.
  2.  Enter the following command to restore the configuration files.

execute restore config usb <File name on USB disk>

Do you want to continue? (y/n)                   <----- Type 'y'.

 

To backup/restore a VDOM configuration, Enter into that VDOM first then use the above-mentioned commands.

 

config vdom
   edit <vdom_name>

 

Use the following CLI commands to delete a file from the USB drive, list what files are on the key, including formatting the key or renaming a file:

 

exec usb-disk list
exec usb-disk delete <filename>
exec usb-disk format
exec usb-disk rename <old_filename1> <old_filename2>

 

Note.
Suppose a user tries to delete a configuration file from the CLI command interface, and the filename contains spaces. In that case, quotations will be necessary around the filename before it is possible to delete the file from the thumb drive.

 

Related article:

Technical Tip: Backup FortiGate config on a USB thumb drive (CLI/Console and GUI)