Naming your API objects
Establish a consistent naming convention for API object names. The naming convention must cater for the file space name, the high-level qualifier, and the low-level qualifier. The file space name and high-level qualifiers can refer to actual directory names. Each object name can consist of more than one directory name that applies to the low-level qualifier.
For convenience, use the name of the object that is not prefixed with directory information as the low-level qualifier. For more information, see Object names and IDs.
/a/a/b
/a, objects that are related
only to file space /a are displayed. To view objects
that are related to /a/b, you must specify /a/b as the file space name.After you register both file spaces, if you back up object b into file space /a, then a query for /a/b continues to display objects that are related only
to file space /a/b.
/a* refers
to both /a and /a/b. On Windows systems, enclose file space names
in braces { } for API objects when you access the
objects from the backup-archive command line interface. Windows operating systems automatically place
file space names in uppercase letters when you register or refer the
names. However, this automatic function does not occur for the remainder
of the object name specification. If you want full interoperability,
place the high-level qualifier and the low-level qualifier in uppercase
letters in the application when you back up API objects. If your application
does not uppercase high-level qualifiers (directory names) and low-level
qualifiers (file names) before it sends objects to the server, you
will be unable to access the objects directly by name through the
backup-archive client.
dsmc query backup {"FileSpaceName"}\TEST\MYDIRNAME\* dsmc query backup {"FileSpaceName"}\TEST\*\* | Platform | Example |
|---|---|
| Windows | To query all backed-up files in file
space MYFS, enter the following string: You must use at least one asterisk
(*) for each of the high-level and low-level qualifiers. |
| UNIX or Linux | To query all backed-up files in file
space /A, enter the following string: You must use at least one asterisk
(*) for each of the high-level and low-level qualifiers. |