How to backup FreeNAS configuration file and restore it
You need to backup FreeNAS configuration file safely. Backing up the configuration file provides you failsafe mechanism. Sometimes upgrades may fail, or you may experience hardware disk failures. You can go back to a previously good known state of FreeNAS server. It is also possible to do a fresh installation of FreeNAS server and go back to old configuration to save time.
This page will show you how to backup FreeNAS configuration and restore it when needed.
How to backup FreeNAS configuration file
The procedure is as follows for backing up the FreeNAS configuration:
- Login to FreeNAS web interface
- Click on the System
- Click on the General tab
- Scroll to the bottom of the screen and select the Save config button. Click on the Ok button.
The above procedure saves a backup copy of the current configuration database in the format hostname-version-architecture to the computer accessing the administrative interface. When you click the “Save config” button you get the following box:
The Export Password Secret Seed option is off by default. It should only be used when making a configuration backup that will be stored securely. You can check this option to import all passwords after the system boots back up.
Two types of passwords in FreeNAS
- User account passwords.
- ISCSI CHAP passwords or Active Directory bind credentials.
How to restore FreeNAS configuration
To restore a configuration file, click on the System > General tab > Upload config button. Find the configuration .db or .tar.db file you wish to restore. Now, click on Update button.
The FreeNAS configuration file will be restored, and then the FreeNAS box will be rebooted.