Home Learn the Basics View Content Add Content Create Pages Build Portlets Administer Page Groups Administer the Portal Try the Hands-On Exercises
Home
Home
Return to Add ContentCurrent page 1 of 8Go to page 2 of 8Go to page 3 of 8Go to page 4 of 8Go to page 5 of 8Go to page 6 of 8Go to page 7 of 8Go to page 8 of 8Go to page 9 of 11Go to page 10 of 11Go to page 11 of 11Next Page
  Send us your feedback

ldifwrite

Managing Content: ldifwrite

In this section you will learn how to write your DIT to a file in LDIF format.

Prerequisites

OID must be installed

OID must be running

The initial.ldif file should be loaded

DIT backup with ldifwrite

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.

Launch Viewlet Watch a viewlet on how to do this

Oracle Logo Next Page