Jorge Armando Medina wrote:
On Friday 21 November 2008 10:41:27 Ivan Ordonez wrote:
I have run "slapcat -l export.ldif" many times without stopping the ldap service and it seems fine, and worked perfectly. Was there any reason why the service need to be stop while running slapcat? Just curious.
CAUTION: If data is being altered or updated when you perform a hot backup, a mismatch can occur between the backup file and OpenLDAP server's final data. There is a risk of inconsistent data when performing a hot backup.
There is no such thing as "final data." If you stop slapd and run slapcat, you will get a particular backup image. Once you restart slapd and it starts processing updates again, your backup file will be "inconsistent" with the current slapd state. There is no difference between a hot backup vs a cold backup here, eventually it will be out of date.
That is why it is recommend to do hot backups at nights when there is not write operations.
Thanks, -Ivan
piyush joshi wrote:
Use *slapcat -l users.ldif but first stop the slapd service if using old version of OpenLDAP.*
On Fri, Nov 21, 2008 at 12:13 PM, Pierangelo Masarati<ando@sys-net.it mailto:ando@sys-net.it> wrote:
Please keep postings to the list revathi ganesh wrote: Thanks for your reply.. Can you give me the procedure how to back up the entire openldap to LDIF file # ldapsearch -x -LLL> openldap.ldif Is this correct. No. Please read my previous message, which contains an indication of the correct procedure. p. Thanks --- On Fri, 21/11/08, Pierangelo Masarati<ando@sys-net.it <mailto:ando@sys-net.it>> wrote: From: Pierangelo Masarati<ando@sys-net.it <mailto:ando@sys-net.it>> Subject: Re: import LDIF file from openldap to redhat directory server To: "revathi ganesh"<cholam20@yahoo.co.in <mailto:cholam20@yahoo.co.in>> Cc: openldap-technical@openldap.org <mailto:openldap-technical@openldap.org> Date: Friday, 21 November, 2008, 12:23 AM revathi ganesh wrote: Dear gurus I have installed redhat directory server in a new server. The OS is RHEL V5. We already are running openldap in RHEL V4. Now how can I import the all the datas (user accounts) from openldap to RHDS. Please give me the procedure. To extract the data in LDIF, you can use slapcat(8). Then, you probably better ask on a RHDS list. p. Ing. Pierangelo Masarati OpenLDAP Core Team SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it<http://www.sys-net.it/> ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it<mailto:ando@sys-net.it> ----------------------------------- Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ Ing. Pierangelo Masarati OpenLDAP Core Team SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it<http://www.sys-net.it/> ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it<mailto:ando@sys-net.it> -----------------------------------
-- Regards
Piyush Joshi 9415414376