Does anyone know a foolproof way of taking ApacheDS backup? This is what I have tried:
- Tried taking the "LDIF export" from ApacheDS Studio. However, the export does not have proper tree structure and hence restoration always fails. This can be avoided by manually arranging the lines inside the LDIF file. However, this is highly error prone and would be really difficult to script even with the best knowledge of REGEX and File handing..
- Besides, there is no programmatic way of taking the "LDIF Export" in first place. This has to be done manually from ApacheDS studio (an Eclipse like application)
- Another way I tried was to take raw files from
/var/lib/apacheds-2.0.0-M15/default/partitions
and restore it as it is to a fresh installation of ApacheDS. However, after this, the ApacheDS service fails to start.- I got the service running fine using the raw LDAP files. This was possible only after uninstalling
apacheds-2.0.0-M15-amd64.deb
and installing the latest available versionapacheds-2.0.0-M19-amd64.deb
. However, the custom partition does not show up in the ApacheDS Studio. huh...
- I got the service running fine using the raw LDAP files. This was possible only after uninstalling
- https://directory.apache.org/apacheds/kerberos-ug/3.6-backup-restore.html is no help
- I do not want what is mentioned in https://serverfault.com/a/331652/114516
- I saw taking ldap dump using about
apacheds-tools.jar
from https://cwiki.apache.org/confluence/display/DIRxSRVx10/2.1.2.+ApacheDS+tools. However, For the love God, I am not able to find where to download that jar file from.
FWIW, I do not know java programming at all.