Backup Methods

Hello again,

What are common back up practices for working with Identity Manager? We back up our db, but the db backup is not fun to restore from, and won't work that great for version control. Since most all of the important objects in IdM can be exported as XML, it seems like the configuration should be exported enmasse once in a while (say after any development/configuration changes) and checked into a version control system. Is there a good way to do this? Do I need to create scripts to export every known object from the repository? What are other people doing?

Any advice is greatly appreciated.

Jim

[637 byte] By [JimBeard] at [2007-11-26 9:24:14]
# 1

What I'm currently planning on doing, is writing scripts to use lh to export objects. Then check in the objects to a version control system. Are other people doing this? Is there another way to go about it that doesn't involve writing a lot of scripts? Are there ways to automate the discover of objects? Or do I have to maintain a big list of objects that I care about?

JimBeard at 2007-7-6 23:59:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

We tackle it from the other end. We use CVS version control to house our XML, and make branch tags for big efforts which affect lots of objects. We use an ant script to generate an XML file (much like the init.xml that is used in install) that links to all the XML files checked out.

During our development and test cycle, we will run the ant script to build the latest build version and then package it (basically tar and compress the XML filestructure). This package is then installed on the IDM server and we import the init.xml

For one-off XML changes, we make the change to file, commit it to CVS, and then import the file. We'll make a package afterwards, and the changes will be brought into the package.

If for some reason we need to backout some XML, we can checkout a previous stable version and import select files. Or if the repository needs to be rebuilt, we can just import from the package and the code is back the way it was.

Jason

jsallee at 2007-7-6 23:59:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3
Hey.. that is really interesting..Is it possible to share your ant task to generate the import xml.Thanks abunch in advanceanokun7@gmail. com
anokun7 at 2007-7-6 23:59:35 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4

> Hey.. that is really interesting..

>

> Is it possible to share your ant task to generate the

> import xml.

Sure. I posted it in another thread a while back. Here's a link to that thread: http://swforum.sun.com/jive/thread.jspa?threadID=93291&messageID=321915#321 915

Jason

jsallee at 2007-7-6 23:59:35 > top of Java-index,Web & Directory Servers,Directory Servers...