To backup the FreeNAS configuration file and restore it, you can use the freenas-cli
command. The freenas-cli
command is a command-line interface for the FreeNAS system that allows you to manage the system and its configuration.
Here's an example of how to use the freenas-cli
command to backup the FreeNAS configuration file:
freenas-cli system backup create
This command will create a backup of the FreeNAS configuration file and save it to the default backup location.
To restore the FreeNAS configuration file from a backup, use the following freenas-cli
command:
freenas-cli system backup restore
This command will restore the FreeNAS configuration file from the most recent backup.
You can also use the --name
option to specify a specific backup to restore from. For example:
freenas-cli system backup restore --name=backup_2022-12-20
This will restore the FreeNAS configuration file from the backup with the name backup_2022-12-20
.