Have you ever wanted to export settings from vRops, either as a form of backup or to migrate to another installation? Then you know how cumbersome it can be to find all the settings and export them one by one and also remembering to get it all. To help me get this task done I have created this Powershell script which uses the vRops API to export the settings to xml files which can be easily be imported if or when needed.
The list of settings being exported:
- Authentication Sources
- Email Templates
- Groups, their role and members
- Notifications Rules
- Roles and their privilege
- SolutionsCredentials (no password included)
- Users, their groups and role
There are a few variables which needs to be changed for you to export settings from vRops. Username and password of a user which has API access. This could be the admin user, but better yet you have an account with read-only API access. Also the FQDN or IP of your vRops master node needs to be changed. lastly, per default the script will export data to C:\temp, if you have another location change this variable as well.
I have as usual put the script up on github as a gist for everybody to consume.
These exports can be used to import settings into vRops. They are hardly readable by humans, but that is also the point with these exports. They are meant to be machine readable, hence they are hard to read for humans. If needed, the same constructs as used in this script can be used to make exports which is readable by humans and manipulated in applications such as Excel. This is out of the scoop of this blog post, but it is a feature I use my self quite often.