Back up and restore command line utility commands and syntax
Fortinet provides administrators the ability to import and export configurations via the CLI. The fcconfig utility can be run locally or remotely as the system user (or admin user) to import or export the configuration file. In Microsoft Windows, the fcconfig utility is located in the C:\Program Files (x86)\Fortinet\FortiClient> directory. In Mac OS X, the fccconfig utility is located in the /Library/Application Support/Fortinet/FortiClient/bin directory.
The following commands are available for use:
- Backup the configuration file:
- Backup the configuration file (encrypted)
- Restore the configuration file
- Restore the configuration file (encrypted)
- Export the VPN tunnel configuration
- Export the VPN tunnel configuration (encrypted)
- Import the VPN tunnel configuration
- Import the VPN tunnel configuration (encrypted)
FCConfig -m all -f <filename> -o export -i 1
FCConfig -m all -f <filename> -o export -i 1 -p <encrypted password>
FCConfig -m all -f <filename> -o import -i 1
FCConfig -m all -f <filename> -o import -i 1 -p <encrypted password>
FCConfig -m vpn -f <filename> -o exportvpn -i 1
FCConfig -m vpn -f <filename> -o exportvpn -i 1 -p <encrypted password>
FCConfig -m vpn -f <filename> -o importvpn -i 1
FCConfig -m vpn -f <filename> -o importvpn -i 1 -p <encrypted password>
Switches and switch parameters are case sensitive. |
Backup and restore CLI commands are an advanced configuration option. |
The command fccconfig -f settings.xml -m all -o export
will export the configuration as XML file in the FortiClient directory.