Quantcast
Channel: citrix – JGSpiers.com
Viewing all articles
Browse latest Browse all 163

NetScaler backup and restore

$
0
0

There are multiple ways to perform backups and restores on NetScaler. Usually you perform those backups for disaster recovery if the NetScaler corrupts, or you are performing an upgrade to NetScaler. You can manually backup and restore NetScaler configurations using the GUI, CLI, or you can use Citrix Command Center and NetScaler MAS to perform automatic backups and manual restores.

Backup and restore using GUI and CLI.

Navigate to System -> Backup and Restore -> Backup.

1-min

Specify a name for the backup and either Full or Basic backup.

Basic: Backs up configuration files only. These are the files that will change most often so you should consider frequently taking a basic backup of the NetScaler:

Folders and files that are backed up include /nsconfig/, /var/, /netscaler/, ns.conf.

Full: Backs up the same data as a basic backup however captures additional files that are less frequently updated:

Folders and files that are backed up include /nsconfig/, /var/, Certificates, License Files.

For a full list of what is backed up see http://support.citrix.com/article/CTX200418.

Click Backup.2-min

After a few moments the backup file will appear as below.3-min

Clicking on the Action button allows you to download the backup file to local HDD or perform a restore using this backup file.4-min

Backups are stored in /var/ns_sys_backup/ on NetScaler. 5-min

To perform a backup using the CLI, run command create system bbackup “backupname” -level Basic/Full6-min

You can specify Full or Basic and write a comment using the -comment switch.7-min

The new backups are now within the backup directory.8-min

The backups also show within the GUI.9-min

Run show system backup using CLI to get a list of backup on NetScaler.10-minTo restore NetScaler to a previous backup, run command restore system backup “backupname”.11-min

Now run reboot -warm, this performs a warm reboot of the NetScaler at which stage the restore will execute.12-min

You can also restore via the GUI. By default before a restore a backup is performed on the NetScaler. You can skip the backup by checking the Skip Backup box. Click Restore.13-min

Navigate to System -> Reboot.14-min

Check Warm reboot and click OK.15-min

Backup and restore using Citrix Command Center.

Citrix Command Center downloads NetScaler configuration, licence files and SSL certificate files from each discovered NetScaler and stores these files in the CCC database. As a NetScaler device is discovered or a rediscovery takes place, backups of the discovered/rediscovered device are also performed. By default backups are performed every 12 hours and a maximum of 50 backups are stored within the database.

To edit the backup schedule and frequency, navigate to Administration -> Inventory Settings.

16-min

As you can see below the archive interval is every 12 hours and the numberr of previous backups to retain is 50. You also have the check box to enable archiving once a Save Config trap is received by Citrix Command Center from the NetScaler appliance.17-min

To view backups of a NetScaler appliance, navigate to Citrix Network, click on your NetScaler and click Details.18-min

A new window pops up and at the bottom you will get a list of all the current backups. The date, time, and comments section give additional information such as the backup was created at the scheduled time.19-min

Select a backup file and click Download -> OK to save a backup to your local machine.20-min

To perform a manual backup, click Backup Config -> OK.21-min 22-min

After a few moments you will see the newly created backup. Notice the comments indicates the user requested this backup which is correct.23-min

To restore a NetScaler using a backup created with Citrix Command Center select a backup file of your choice and select Restore Configuration.24-min

Click OK. The restore takes place and you will have to restart NetScaler using GUI or CLI.25-min

Backup and restore using NetScaler MAS (Management and Analytics System).

NetScaler MAS is the newest platform to automate, manage, orchestrate and monitor appliances such as the NetScaler. It is seen as the replacement to both Citrix Command Center and NetScaler Insight Center. As a result it can perform many of the functions that you were familiar with on CCC/NSIC. Navigate to System -> Instances Backup Settings.26-min

For any instance adding to NetScaler MAS, a backup is by default going to be taken every 12 hours and a single copy will be kept. You have the otion to password protect all backups using a password of your choice. You also have the option to modify the backup interval. From what I believe, the maximum number of backup files to retain is 3 however this is not something I can confirm at this stage.27-min

To view or create a backup of an instance, navigate to Infrastructure -> Instances and select of your NetScaler then click View Backup.28-min

As yet, no automatic backups have been performed. To create one click Back Up.29-min

Specify to password protect the file. If you had of specified a global password under System -> Instances Backup Settings you would have the option to use that. Click Continue.30-min

The new backup has been successfully created.31-min

32-min

To restore check the backup file and click Restore -> Yes.33-min

Specify the backup password you used when creating the backup, click OK.34-min

You get a nice GUI view of the restore progress plus the NetScaler is automatically restarted for you.35-min

 

Note: Do not modify backup file names or modify the contents of the backup as it will invalidate the backup file and cause restores to fail.

 

 


Viewing all articles
Browse latest Browse all 163

Trending Articles