You're here: Administrative Tasks > Backup / Restore

previous topic  next topic

Backup / Restore

You can backup configuration data in several ways:

Full manual backup

You can copy the complete databases manually.

Note:  For installations in a cluster, you usually have to back up both the master and the slaves, as the log files and statistics are stored locally on the slaves. However, if you don’t need to backup log files and statistics, or if you’ve enabled the option useMasterLogs in System Configuration, you only need to backup and restore the master.

Create a backup copy of the entire Stingray Application Firewall directory, but at least of the following files.

Default Directory
(may have been changed, see System Configuration)

Files

Meaning

$ZEUSHOME/stingrayafm/<version>/etc/

zeusafm.conf

Stingray Application Firewall configuration file

Note:  The configuration file zeusafm.conf is also backed up when you perform a backup in Stingray Traffic Manager.

$ZEUSHOME/stingrayafm/<version>/var/lib/

config.db

config-slave.db

runtime.db

stats.db

Stingray Application Firewall databases

$ZEUSHOME/stingrayafm/generic/log/

plus on the master only:

$ZEUSHOME/stingrayafm/generic/logmaster/

all

Stingray Application Firewall log files.

The naming convention for the log files is:

zeusafm-app-%A-%D.log

In the log file name, the character strings %A and %D are replaced by the name of the application and the current date (YYYYMMDD).

Note:  In each case, /<version>/ stands for the current version plus build number.

 

To restore a manual backup:

1.Make sure that the backup was created from the same version that’s currently running. (Note: You can also migrate and restore data that was backed up from a previous version, but this is not recommended. In this case, you also need to call initdatabase manually for migration.)
2.Stop Stingray Application Firewall (see Installation).
3.Copy the backup copies back to the relevant directories.
4.Restart Stingray Application Firewall from the System > Traffic Managers page of the Stingray User Interface.
Stingray Application Firewall then continues to run under the configuration that was active at the time the backup was created.

Caution:  If you’ve added a new license or if you’ve assigned different capabilities to applications since the time of the backup, you need to repeat this process. Your web applications may else be unprotected or all traffic blocked (see Cluster Management).

Backup tool

Caution:  Currently this method only backs up a subset of settings. In particular, the backup includes the settings and features that can be accessed via the REST interface—except for user passwords. For a full backup, please use manual backup.

Requirements:

▪The backup tool can only be used on localhost.
▪The backup tool can only be used if the following option is set within the configuration file zeusafm.conf: aod-magic-authenticate-with-cluster-password = True
▪You can only restore a backup that was made from the same database version that Stingray Application Firewall is currently running. If the versions don’t match, the backup tool exits with an error. In this case, to be able to restore your backup, you need to roll back to the previous version of Stingray Application Firewall that was active while the backup was made.

 

Calling the backup tool:

The backup tool resides in [INSTALL_DIR]/bin/ as backup_tool. Backup creates a ZIP file that essentially contains the structured output of REST nodes in a collection of files.

As arguments, you need to specify the configuration file zeusafm.conf and the backup file to create.

Example:

 
./backup_tool backup /path/to/zeusafm.conf /path/to/backup.zip
 

 

Restoring a backup:

To restore a backup, you call the backup tool in combination with the argument restore and in combination with the location and name of the backup archive.

Example:

 
./backup_tool restore /path/to/zeusafm.conf /path/to/backlup.zip
 

 

If you specify the additional optional argument --without-cluster, the restore action skips administration and decider nodes.

Caution:  If you’ve added a new license or if you’ve assigned different capabilities to applications since the time of the backup, you need to repeat this manually. Your web applications may else be unprotected or all traffic blocked (see Cluster Management).

Exporting and re-importing rulesets

You can export application mappings and rulesets to files. You can later import these files back again. For details, see Export and Import.

Important:  Note that this method only covers your settings made for your applications but no system settings, such as the System Configuration, the Global Configuration, User Management, etc.

©  Riverbed Technology, all rights reserved   previous topic  next topic