Re: Back up of database for desaster recovery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These commands will export your data into an LDIF file. Replace everything in the [brackets] with your info.

Change to directory with scripts
# cd /usr/lib64/dirsrv/slapd-[TAB]

Dump data to ldif
# ./db2ldif -n userRoot -a /var/tmp/`date +%Y.%m.%d`.ldif


This step might be optional.. I think it should all ready have the 755 permissions when you dump it, but if not, do this...
# chmod 755 /var/tmp/`date +%Y.%m.%d`.ldif


Restore command
# ./ldif2db.pl -v -D "cn=directory manager" -w PASSWORD -i /var/tmp/`date +%Y.%m.%d`.ldif -s dc=[YOUR],dc=[COM]


-Derek


On Thu, Aug 14, 2014 at 3:56 AM, Alberto Suárez <asuapaz@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello:

I would like to make a valid copy of the LDAP data so that I could restore it in another 389 installation in case of a crash. ¿What is the best way? I have tried the 389 commands but came across with issues.

Thank you.

Alberto Suárez
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux