The ndsbackup utility is a command line utility which allows you to archive and restore eDirectory objects to and from a single file called ndsbackupfile. The actions of the ndsbackup utility are controlled by the command line options. The command line option is a string of characters containing exactly one function letter (c, r, t, s, or x) and zero or more function modifiers (letters or digits), depending on the function letter used. The string contains no space characters. Function modifier arguments are listed on the command line in the same order as their corresponding function modifiers appear in the string.
To archive or restore eDirectory objects, you need to specify the fully distinguished name of a leaf object or a container to be archived, extracted, or listed. To archive the whole tree, specify the Tree object. You can also back up the eDirectory schema by specifying Schema as the eDirectory object.
The ndsbackup utility allows you to customize the backup process. You can choose specific eDirectory objects to exclude or include in the backup session. Whether you use Exclude or Include usually depends on the size of the data you want to back up, compared to the size you do not want to back up. By combining the Include and Exclude options, you can control what is backed up. To back up most of the eDirectory tree structure while omitting only a small part, use the Exclude option to omit the part you do not want to back up. Everything that you do not want specifically excluded is included. After you exclude part of the structure, you cannot include objects below that container.
The following sections provide information about backing up and restoring eDirectory objects on Linux or Solaris systems:
ndsbackup c [fevwXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [eDirectoryobject]ndsbackup r [fevwXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [eDirectoryobject]ndsbackup t [fevXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [eDirectoryobject]ndsbackup x [fevwXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [eDirectoryobject]ndsbackup s [evXR] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [eDirectoryobject]
Table 136. ndsbackup Parameters
You can use the Create function specified by the c parameter to create the ndsbackupfile into which eDirectory objects are to be archived. Writing begins at the beginning of the file instead of the end. If a specified ndsbackup file exists, it will be overwritten.
To create the ndsbackupfile:
Use the following syntax:
ndsbackup c [fevwXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [NDSobject]
You can use the Replace function specified by the r option to back up the named eDirectory objects in the specified ndsbackupfile. The eDirectory objects are appended to the specified ndsbackupfile, effectively replacing the existing objects for restore.
To replace existing objects for restore:
Use the following syntax:
ndsbackup r [fevwXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [NDSobject]
You can use the Scan function specified by the s option to scan the eDirectory objects in a tree.
To scan the eDirectory objects in a tree:
Use the following syntax:
ndsbackup s [eSvwXR] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [NDSobject]
You can use the Table of Contents function specified by the t option, to list the names of the specified eDirectory objects each time they occur in the ndsbackupfile. If no argument is given, the names of all eDirectory objects in the ndsbackupfile are listed.
To obtain a list of eDirectory objects from the ndsbackupfile:
Use the following syntax:
ndsbackup t [fevXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [NDSobject]
You can use the Restore function specified by the x option, to extract the named eDirectory objects from the ndsbackupfile and restore to the eDirectory tree. If a named eDirectory object matches a container whose contents have been written to the ndsbackupfile, this container is recursively extracted.
To restore eDirectory objects to the eDirectory tree:
Use the following syntax:
ndsbackup x [fevwXR] [ndsbackupfile] [exclude-file] [Replica-server-name] [-a admin-user] [-I include-file]... [NDSobject]
To archive eDirectory objects in the container abc_inc:
Enter the following command:
ndsbackup cvf ndsbackupfile .O=abc_inc
To archive all the eDirectory objects in a tree:
Enter the following command:
ndsbackup cvf ndsbackupfile tree_name
To archive the eDirectory schema:
Enter the following command:
ndsbackup cvf ndsbackupfile Schema
To restore eDirectory objects from ndsbackupfile to eDirectory in the container abc_inc:
Enter the following command:
ndsbackup xvf ndsbackupfile .O=abc_inc