Backups
A configuration backup file allows you to reset FortiDB to its default configuration, if required.
When you update the firmware image, FortiDB keeps existing data and configuration. However, Fortinet recommends that you back up all FortiDB data and configuration settings before you upgrade. The backup operation safeguards data and configuration settings in case power is lost during the upgrade.
You should also back up the configuration before you use the execute format disk CLI command, which resets all device settings and configuration and deletes log data on the hard drive.
To back up your configuration settings using the CLI
Backing up data and the current configuration using the CLI requires an FTP server.
1. Log into the CLI.
2. Enter the following command to back up your local database, system-configuration settings, archives and reports:
execute backup all-settings <ftp server> <filepath> <username> <password> [cryptpasswd]
For details on this command, see
“execute backup all-settings”.
3. After successfully backing up your configuration files from the CLI, proceed with upgrading FortiDB firmware.
To restore your configuration settings using the CLI
The following steps restore your FortiDB configuration settings using the CLI.
1. Log into the CLI.
2. Enter the following command to copy the backup configuration settings to restore the file on the FortiDB unit:
execute restore all-settings <ftp server> <filepath> <username> <password> [crptpasswd]
Use the show shell command to verify your settings are restored, or log into the web-based manager.