quanah,
Thanks for your reponse. maybe I didn't specify case clearly.
we backup the files. then we have to do full installation of the sytem (with new release), in this new installation, we had new data created in openldap during the installation. then we manually restore the data with sldapadd, and the new data creaetd during the full installation was lost because of the old backup file don't include these new data created during full installation.
We tried to with "-c" option to run slapadd, but it still return error result:
like the following code. the slapadd report some entries already exist, then the final result of slapadd is 1 (failure).
slapadd -c .....
if [ $? != 0 ]; then
// print error and exit.
fi
Is it possible that we ingore the existing entry and slapadd return 0 or some meanful result finally?
Thanks,
Eric.
> Date: Mon, 24 Mar 2014 10:16:51 -0700
> From: quanah@zimbra.com
> To: ericxiaomingzhao@hotmail.com; openldap-technical@openldap.org
> Subject: Re: question about openldap restore with command sldapadd
>
> --On Monday, March 24, 2014 2:54 PM +0800 xiaoming zhao
> <ericxiaomingzhao@hotmail.com> wrote:
>
> >
> > All,
> >
> > I got one question, when doing openldap restore, in our script, we tried
> > to remove the openldap/data directory, then restore the backup openldap
> > files.
> >
> > but since we have other data added in openldap database after backup.
> > then if we doing backup, it will remove the data newly added after backup.
>
> Stop slapd, take a new slapcat, then restore...
>
> --Quanah
>
>
> --
>
> Quanah Gibson-Mount
> Architect - Server
> Zimbra, Inc.
> --------------------
> Zimbra :: the leader in open source messaging and collaboration