Created on 09-30-2021 03:35 AM Edited on 03-31-2024 10:34 PM
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.
exec backup full-config usb <filename>
exec usb-disk list
Note.
The FortiGate automount most FAT and vFAT formatted usb drives with no problems.
To restore configuration using the CLI.
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)
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.