- 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:
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.
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.
The backup was successful.
Backed up image is stored as a single file in “/var/ns_sys_backup/” folder.
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.
Then reboot your appliance.
List backups
Command line
1
|
show system backup
|
GUI
Leave a Reply
You must be logged in to post a comment.