| Send us your feedback |
ldifwrite |
|||||||||
|
Managing Content: ldifwrite Prerequisites The initial.ldif file should be loaded Enter the following command to backup the "o=IMC,c=US" directory limb of your DIT. You will need to enter the "ods" password after entering this command. The default password for "ods" is "ods". If you have changed it you will need to provide the correct password. ldifwrite -c iasdb -b -f /tmp/backupDIT.ldif This example creates a file called "backupDIT.ldif" which contains the entire contents of your DIT in the /tmp directory of your local file system. Note! This file will be used later in this section to restore a bulkdelete of the "o=IMC,c=US" directory tree limb so do not delete the file created by this command. LDAP Schema backup with ldapsearch You may also want to backup your LDAP schema to a file that is in LDIF format. This should be done using the ldapsearch command as follows: ldapsearch -p 4032 -h localhost -L -b "cn=subschemasubentry" -s base -D "cn=orcladmin" -w welcome1 "objectclass=*" > /tmp/backupSchema.ldif By using the "-L" option your data will be organized in LDIF format much like your DIT in the previous example. This example creates a file called "backupSchema.ldif" which contains the entire contents of your LDAP schema in the /tmp directory of your local file system. |
||||||||||