Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

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:
  • FCConfig -m all -f <filename> -o export -i 1

  • Backup the configuration file (encrypted)
  • FCConfig -m all -f <filename> -o export -i 1 -p <encrypted password>

  • Restore the configuration file
  • FCConfig -m all -f <filename> -o import -i 1

  • Restore the configuration file (encrypted)
  • FCConfig -m all -f <filename> -o import -i 1 -p <encrypted password>

  • Export the VPN tunnel configuration
  • FCConfig -m vpn -f <filename> -o exportvpn -i 1

  • Export the VPN tunnel configuration (encrypted)
  • FCConfig -m vpn -f <filename> -o exportvpn -i 1 -p <encrypted password>

  • Import the VPN tunnel configuration
  • FCConfig -m vpn -f <filename> -o importvpn -i 1

  • Import the VPN tunnel configuration (encrypted)
  • 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.

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:
  • FCConfig -m all -f <filename> -o export -i 1

  • Backup the configuration file (encrypted)
  • FCConfig -m all -f <filename> -o export -i 1 -p <encrypted password>

  • Restore the configuration file
  • FCConfig -m all -f <filename> -o import -i 1

  • Restore the configuration file (encrypted)
  • FCConfig -m all -f <filename> -o import -i 1 -p <encrypted password>

  • Export the VPN tunnel configuration
  • FCConfig -m vpn -f <filename> -o exportvpn -i 1

  • Export the VPN tunnel configuration (encrypted)
  • FCConfig -m vpn -f <filename> -o exportvpn -i 1 -p <encrypted password>

  • Import the VPN tunnel configuration
  • FCConfig -m vpn -f <filename> -o importvpn -i 1

  • Import the VPN tunnel configuration (encrypted)
  • 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.