Netscaler backup automation with ADM

Netscaler backup automation with ADM tips and tricks

· 2 min read
Netscaler backup automation with ADM
Photo by Taylor Vick / Unsplash

When managing few Netscaler (SDX, MPX, VPX etc) it can be useful to back them up.  An easy way to do it is to use ADM to get one place to have all your Netscaler instances backed up and then upload all the backup files to another place on a remote share, SCP, FTP or SFTP.

Part of the solution is in Citrix documentation here :

But this remains a manual task and if you don't export the backup, they remain on the ADM instance.

This part of ADM ui is not very well done, if the backup fails, no message, back to square 0, if it successes, no message, back to square 0... Not very helpful.

While checking the ogs on the ADM I noticed this entry :

Apr 6 13:25:18 <> ADM01 mas_config: : DEVICECONFIG CMD_EXECUTED : User userroot - InstanceIP - InstanceUser - Command "sftp /var/mps/tenants/root/device_backup/" - Status "Completed" - Message "Upload backup file Successful"

On the ADM instance, there is one folder per backed up Netscaler instance in the folowing directory : /var/mps/tenants/root/device_backup/

I was about to write a custom script to schedule a copy of all these backups to a remote share when I checked in the Settings > System Administration > Configure System and Instance backup and there was this serate hidden menu to do the trick from the gui.

By clicking on Instance, you can chose to Enable External Transfer :

That's a nice feature you need to use :)