VMware View 3.1 offers a new function which helps you to automate the View Composer and View Manager ADAM database backup. Backup is often a part in IT which people forget about and just remember if it is already to late. In a View environment you can have two or three databases depending on the View license.
With View Enterprise there is the vCenter and the View Manager ADAM (Active Directory Application Mode) database and with View Premier the additional View Composer database. Back in version 3.01 and earlier there were already tools for doing a backup but it was a manually task for the administrator which of course could be automated with scripts. The tools I mentioned (vdmexport.exe and sviconfig.exe) can be found in the program files directory on the View Manager or View Composer server. With version 3.1 the process of backing up the databases can be easily automated through the View Administrator GUI. Login to the web interface and click on the configuration button. Then select servers from the left menu bar. In the right pane you’ll see your View Server which you should select and then edit. On the bottom of the popup windows you’ll see the backup function where you can configure the backup time, frequency and the number of backups until the old files will be overwritten.
Back on the server tab you can see the status of the database backup. The broker will show a message wether or not the backup has run.
It is also possible to do a manual backup through the GUI by clicking on the function Backup Now. If clicked the broker will re-check with you and then immediately start a database backup.
In the pre configured path you’ll find the backup files and see that they’ve different file type extensions.
The LDF files are standard LDIF exports from the View Manager ADAM database and the SVI files are from the View Composer database. Now you have your backup you should take care about backing up the files again. Just copy them to another file store or use a 3rd party backup software to store them on a tape or other type of backup storage. But what if you have an issue with the broker or View Composer and you need to restore the data? In this case you will have to use the command line tools shipped with the View Manager and View Composer. For restoring the ADAM DB you must use the vdmexport.exe. Please check this Whitepaper on the VMware website to learn more about the tool.
To restore the View Composer database you need the sviconfig.exe tool which can be found on the View Composer / vCenter server. Open a command line on the View Composer server and go to the directory: C:\Program Files\VMware\VMware View Composer\ and type sviconfig and hit enter. This will show you all available options with this application:
Restoredata is the right option to restore your View Composer database. To get more information about the command you should type: sviconfig -operation=restoredata and press enter. This will show up all options for the parameter: