- September 29, 2017
- Posted by: Syed Shujaat
- Category: Uncategorized
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:
1
|
save ns config
|
- 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:
![saveNetScalerConfigurationGUI saveNetScalerConfigurationGUI Save NetScaler configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration saveNetScalerConfigurationGUI](http://www.citrixguru.com/wp-content/uploads/2015/10/saveNetScalerConfigurationGUI.png)
Take a copy of the current saved configuration
1
2
|
shell
cp /nsconfig/ns.conf /nsconfig/ns.conf.copy
|
Restore a saved NetScaler configuration
1
2
3
4
5
|
shell
cd /nsconfig
cp /nsconfig/ns.conf.copy /nsconfig/ns.conf
exit
reboot –warm
|
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.
1
|
tar cvzf /var/tmp/backup.tgz /flash/nsconfig
|
At this time nothing is changed to the configuration. The backup file (backup.tgz) will be stored in /var/tmp/.
Command line
1
|
create system backup [<fileName>] –level <basic | full> –comment <string>
|
1
|
create system backup backup–oct21–full –level full –comment backup
|
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.
![NetScalerBackup1-1024x422 NetScalerBackup1-1024x422 NetScaler Backup 1 Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration NetScalerBackup1](http://www.citrixguru.com/wp-content/uploads/2015/10/NetScalerBackup1-1024x422.png)
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.
![NetScalerBackup2 NetScalerBackup2 NetScaler Backup 2 Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration NetScalerBackup2](http://www.citrixguru.com/wp-content/uploads/2015/10/NetScalerBackup2.png)
The backup was successful.
![NetScalerBackup3 NetScalerBackup3 NetScaler Backup 3 Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration NetScalerBackup3](http://www.citrixguru.com/wp-content/uploads/2015/10/NetScalerBackup3.png)
Backed up image is stored as a single file in “/var/ns_sys_backup/” folder.
![CitrixGuru_Lab_Capture_31_1445446924 CitrixGuru_Lab_Capture_31_1445446924 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](http://www.citrixguru.com/wp-content/uploads/2015/10/CitrixGuru_Lab_Capture_31_1445446924.png)
Restore NetScaler configuration
Command line
1
2
|
restore system backup –fileName backup–oct21–full.tgz
reboot
|
GUI
Go to System, then Backup and Restore.
Select the backup you want to restore, then select Action and Restore.
![restoreBackup restoreBackup Restore Backup Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration restoreBackup](http://www.citrixguru.com/wp-content/uploads/2015/10/restoreBackup.png)
Then reboot your appliance.
List backups
Command line
1
|
show system backup
|
![CitrixGuru_Lab_Capture_30_1445446037 CitrixGuru_Lab_Capture_30_1445446037 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](http://www.citrixguru.com/wp-content/uploads/2015/10/CitrixGuru_Lab_Capture_30_1445446037.png)
GUI
![listBackups listBackups list Backups Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration Lab: Part 8 - Save, Backup and Restore NetScaler 11 configuration listBackups](http://www.citrixguru.com/wp-content/uploads/2015/10/listBackups.png)
Leave a Reply
You must be logged in to post a comment.