All,
Thanks for all of the responses - they are much appreciated.
<summary>
------------
From Prathap
------------
stop aphelion
/etc/rc2.d/S77cdsDaemon stop &
export ldif file
/usr/sbin/lde/export -f /usr/var/lde/PTCLdap/PTCLdap_lde.conf
start aphelion
/etc/rc2.d/S77cdsDaemon start &
dump file exported is
/var/lde/PTCLdap/PTCLdap_database/root.ldif
------------
From Swapnil
------------
Command option for exporting LDAP.
Option 1.
From cd \usr\var\lde\PTCLdap
\usr\sbin\lde\export -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf
Copy the exported root.ldif file found under
R:\usr\var\lde\PTCLdap\PTCLdap_database directory.
Option 2
From Windchill shell
windchill com.infoengine.util.LDAPExport -dir <windchill_home_target>
-ldiffile <path-to-local-ldif-file>
Now actually depends, how you want to use it, probably you can put in shell
script or use it in crontab file for scheduling it.
Note that a concern was raised that Option #2 does not export the entire
root node.
-----------
From Martin
-----------
get ldapsearch (also part of openldap or probably in the aphelion directory
under usr/bin)
export can be done e.g. assuming user=cn=manager and password ldapPass with
ldap running locally on port 389, else add "-h host.name"
ldapsearch -D cn=manager -w ldapPass -x -L -b o=ptc > export.ldif
------------
From Alexius
------------
PFA my script that is Solaris specific. It exports the Ldap, gzips it with
a date/time stamp and then moves it to a backup folder that I have. I set
up a cron to run this script every hour at the top of the hour.
<script>
/usr/sbin/lde/export -f /var/lde/PTCLdap/PTCLdap_lde.conf -l
gzip /opt2/ptc/aphelion/lde/var/PTCLdap/PTCLdap_database/root.ldif
mv /opt2/ptc/aphelion/lde/var/PTCLdap/PTCLdap_database/root.ldif.gz
/opt2/ptc/aphelion/LDAP_BACKUP/`date '+%m%d%y%H%M%S'`_root.ldif.gz
<script>
Again, thanks to everyone. The help is much appreciated...
Mark