Backup and Restore
As with any data on a computer, it's prudent to back up the rules and configuration data from the NFCS. All configuration and rule data is stored in text files that can be copied and saved either internally or on another computer. There are three ways to back up data, and two ways to restore from backup.
Fast and Simple
In the NFCS web interface, go to the 'System' tab. To back up all configuration and rule settings, Put a name in the 'Backup' field and click the 'Backup' button. Names must not contain spaces, punctuation, or special characters with the exception of '-' and '_'. A descriptive name is good, perhaps including a date. Backed up configurations appear as choices in the 'Restore' section.
All configurations saved in this way are saved to internal storage in the NFCS. This means that if there was a catastrophic failure of the CPU card, the configuration and backups could be lost.
To restore, simply click the 'Restore' button next to the saved configuration that you want to restore. NOTE: it may be necessary to cycle power on the NFCS after a Restore operation.
Note that restoring a saved configuration wipes out all current settings.
As delivered, the NFCS has three saved configurations:
Web Based Backup
It's possible to individually back up each configuration file to any computer that has access to the NFCS. In the NFCS web interface, go to the 'System' tab. All the configuration files are shown as clickable links. Right-click on each and save as a file on your computer.
Using FTP for Backup and Restore
The NFCS is an FTP server, so FTP can be used to copy files to and from the NFCS. You can use any FTP client to do this, but there is a simple command-line FTP client that's included with Windows.
Before starting the backup process, create a directory on your computer for the NFCS files. In this example, there's a directory in 'My Documents' named 'nfcs'.
Bring up a command prompt window. One way is to click 'Start', then choose 'Run...', and in the popup type 'cmd'.
In the command prompt window type the following commands:
cd "My Documents\nfcs(or the path to whatever directory you choose)
ftp 192.168.1.8(substitute the address of your NFCS here)
When prompted, enter nfcs for user name. Enter the password for your system, which can be found inside the front cover.
At the ftp prompt, type
You can copy individual files from the NFCS to your computer by typing
get filenamewhere filname is the name of the individual file that you want to copy.
You can copy all configuration files by typing
You can copy files from your computer to the nfcs by typing
And finally, you can copy all configuration files (assuming that you have them on your computer) by typing
You can also back up, delete, or replace any configurations that were saved to internal storage. These are simply files in the /www/apache/htdocs/backups directory. They are tar files that have been compressed with gzip. If you are familiar with this approach, you can unpack and study the backups anywhere. Otherwise, simply store the files themsleves as desired and copy them back to the NFCS if needed.
In addition to the configuration files, the NFCS application makes use of several executable programs. These are stored in /www/apache/cgi-bin/ and /www/apache/cgi-bin/utils/. These files do not need to be backed up as thre are copies retained on the server at nofossil.org. However, software upgrades might involve using FTP to replace some of these files.