Save, Backup and Restore NetScaler 11 configuration

Save, Backup and Restore NetScaler 11 configuration

Save NetScaler configuration

Command line

By default, the NetScaler keeps a copy of the last 5 configuration changes made to the system in /flash/nsconfig when using the following command:

  • ns.conf (the last saved configuration)
  • ns.conf.0
  • ns.conf.1
  • ns.conf.2
  • ns.conf.3
  • ns.conf.4

GUI

Click on the save icon on the bottom right of the screenshot below:

Save NetScaler configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration saveNetScalerConfigurationGUI
Save NetScaler configuration

Take a copy of the current saved configuration

Restore a saved NetScaler configuration

Backup NetScaler configuration

  • You cannot use the backup file taken from one appliance to restore a different appliance.
  • You can back up and restore appliances in an HA setup, but make sure that you restore to the same appliance from which the backup file was created. For example, if the backup was taken from the primary appliance of the HA pair, when restoring make sure that the appliance you are restoring is the same appliance, even if it is no longer the primary appliance.
  • You cannot perform the backup and restore operation on a NetScaler cluster.

Manually

The command below will backup the nsconfig folder including:

  • Current saved configuration
  • Previous 5 saved configuration
  • Licenses
  • Certificates
  • etc.

At this time nothing is changed to the configuration. The backup file (backup.tgz) will be stored in /var/tmp/.

Command line

Backed up image is stored as a single file in “/var/ns_sys_backup/” folder.

GUI

Connect to the NetScaler GUI, go to System then Backup and Restore.

NetScaler Backup 1 Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration NetScalerBackup1
NetScaler Backup 1

Select Backup.

Enter the name and select Full or Basic, then press select Backup.

  • Basic – this level would backup all the important configuration files along with the key log files and downloaded objects used in functional features like Application Firewall and Responder.
  • Full – this level covers everything backed up using basic and adds other important files which are less frequently changed like SSL certificates/keys and license files.
NetScaler Backup 2 Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration NetScalerBackup2
NetScaler Backup 2

The backup was successful.

NetScaler Backup 3 Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration NetScalerBackup3
NetScaler Backup 3

Backed up image is stored as a single file in “/var/ns_sys_backup/” folder.

Backup file location Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration CitrixGuru Lab Capture 31 1445446924
Backup file location

Restore NetScaler configuration

Command line

GUI

Go to System, then Backup and Restore.

Select the backup you want to restore, then select Action and Restore.

Restore Backup Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration restoreBackup
Restore Backup

Then reboot your appliance.

List backups

Command line

List backups Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration CitrixGuru Lab Capture 30 1445446037
List backups

GUI

list Backups Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration listBackups
list Backups

 



Leave a Reply