Use the mkds
command to make a dataset file or directory.
See Also:
"Dataset Commands" for related commandsYou must have the modify administrative domain's configuration right to use the mkds
command.
mkds [ --nq ] [ --dir/-d ] [ --nocheck/-C ] [ --noedit/-E ] [ --input/-i ] dataset-name ...
Does not display a confirmation message. If you do not specify this option, then the command displays a confirmation message. The message is described in "Command Execution in Interactive Mode".
Creates a dataset directory called dataset-name.
A dataset directory is a directory that contains dataset files. Dataset directories can have a hierarchy of nested subdirectories that is up to 10 levels deep.
Disables syntactic checking of a dataset file for errors.
Prevents a default editor window (as defined by your EDITOR
environment variable) from opening when creating a dataset file.
Lets you to input the contents of a dataset file.
Specifies the name of the dataset directory or dataset file. The mkds
command creates the dataset file or directory relative to the directory indicated by the pwdds command. Refer to "dataset-name" for a description of the dataset-name placeholder.
Example 2-83 creates a dataset directory called mydatasets1
and then creates a dataset file called test.ds
in this directory.
Example 2-83 Creating a Dataset
ob> pwdds / (top level dataset directory) ob> mkds --dir mydatasets1 ob> mkds --nq --input mydatasets1/test.ds Input the new dataset contents. Terminate with an EOF or a line containing just a dot ("."). include host brhost2 include path /home . ob> lsds --recursive Top level dataset directory: mydatasets1/ mydatasets1/test.ds
Example 2-84 creates a not_used
subdirectory in the mydatasets1
directory.
Example 2-84 Creating a Dataset Subdirectory
ob> pwdds /mydatasets1 ob> mkds --dir not_used ob> cdds .. ob> pwdds / (top level dataset directory) ob> lsds --recursive Top level dataset directory: mydatasets1/ mydatasets1/not_used/ mydatasets1/test.ds
Example 2-85 creates a dataset file named c-winhost1.ds
. This file specifies the backup of drive C
on a Windows host named winhost1
.
Example 2-85 Creating a Dataset for a Windows Host
ob> pwdds / (top level dataset directory) ob> mkds --nq --input c-winhost1.ds Input the new dataset contents. Terminate with an EOF or a line containing just a dot ("."). include host winhost1 include path "C:\" { exclude name *.log } . ob> lsds NEWCLIENTS c-winhost1.ds