Entering options with a command

You must follow the general rules for entering options with a command.

  • Enter a command, a dash (–), the option name, an equal sign (=), and the option value or parameter. Do not include spaces on either side of the = sign.

    Here are examples of this syntax on different clients:

    Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
       dsmc archive -description="year end 1999" /home/
    Windows operating systems
       dsmc archive -description="Project A" c:\devel\proj1\*
  • For options that do not include parameters, enter a command, a dash (–), and the option name. For example,
       dsmc incremental -quiet
    Note: Use a leading dash (-) to indicate that the following text is the name of an option. If an object name begins with a dash, you must surround it in either single quotation marks (') or quotation marks ("). Most operating system command line processors strip the quotation marks before the command-line arguments are submitted to the IBM® Storage Protect client application. In such cases, by using escape characters or doubling the quotation marks allows the client to receive the quoted object name. In loop mode, surround such objects in either single quotation marks (') or quotation marks (").
  • Enter either the option name, or an abbreviation for the option name. For example, to enter the latest option, enter either -lat or -latest. The capital letters in the syntax of each option indicate the minimum abbreviation for that option name.
  • Enter options before or after command parameters. For example, you can enter the option before or after a file specification: Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
       dsmc selective -subdir=yes "/home/devel/proj1/*"
       dsmc selective "/home/devel/proj1/*" -subdir=yes
    Windows operating systems
       dsmc selective -subdir=yes c:\devel\proj1\*
       dsmc selective c:\devel\proj1\* -subdir=yes
  • When you enter several options on a command, separate them with a blank space.
  • Enclose the value in quotation marks (" ") if the option value that you enter contains a blank space. For example: Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
       dsmc archive -description="Project A" "/home/devel/proj1/*"
    Windows operating systems
       dsmc archive -description="Project A" c:\devel\proj1\*
  • Most options that you enter on the command line override the value that is set in the preferences file. However, when you use the domain option with the incremental command, it adds to the domain specified in your client options file rather than overriding the current value.
  • Oracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsOn AIX®, Solaris, Linux® on z, and Mac: The maximum number of characters for a file name is 255. The maximum combined length of the file name and path name is 1024 characters. The Unicode representation of a character can occupy several bytes, so the maximum number of characters that a file name might contain can vary.
  • Linux operating systemsOn Linux: The maximum length for a file name is 255 bytes. The maximum combined length of both the file name and path name is 4096 bytes. This length matches the PATH_MAX that is supported by the operating system. The Unicode representation of a character can occupy several bytes, so the maximum number of characters that comprises a path and file name can vary. The actual limitation is the number of bytes in the path and file components, which might or might not correspond to an equal number of characters.

    Linux operating systemsOn Linux: For archive or retrieve operations, the maximum length that you can specify for a path and file name (combined) remains at 1024 bytes.

  • Windows operating systemsThe maximum number of bytes for a file name and file path is 6255 combined. However, the file name itself cannot exceed 255 bytes and the path that leads to the file cannot exceed 6000 bytes. Furthermore, directory names (including the directory delimiter) within a path are limited to 255 bytes. The Unicode representation of a character can occupy several bytes, so the maximum number of characters that a file name might contain can vary.
  • Mac OS X operating
systemsFor Mac OS X, the maximum length of a file name is limited to 504 bytes (not characters). The Unicode representation of a character can occupy several bytes, so the maximum number of characters that a file name contains can vary.

Table 1 lists client command options that you can enter only on the command line with specific commands.

Table 1. Client command options
Command option Description Commands
archmc Use the archmc option with the archive command to specify the available management class for your policy domain to which you want to bind your archived files. archive
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsclass Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsSpecifies whether to display a list of NAS objects or client objects when you use the following commands. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
query backup
delete filespace
query filespace
console Use the console option with the query systeminfo command to output system information to the console. query systeminfo
Mac OS X operating
systemsdeletefiles Mac OS X operating
systemsDeletes the local copy of files from your workstation after they are archived on the server. Mac OS X operating
systems
archive
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsdeletefiles Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsDeletes the local copy of files from your workstation after they are archived on the server. Can also be used with the restore image command and the incremental option to delete files from the restored image that are deleted from the file space after the image is created. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systems
archive
restore image
description Assigns or specifies a description for files when archive, delete, retrieve, or query archive operations are performed.
archive
delete archive
query archive
query backupset
retrieve
detail Displays management class, file space, backup, and archive information, depending on the command with which it is used.
delete filespace
query archive
query backup
query filespace
query mgmtclass
dirsonly Backs up, restores, archives, retrieves, or queries directories only.
archive
incremental
query archive
query backup
restore
restore backupset
retrieve
selective
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsdynamicimage Linux operating systemsOracle Solaris operating
systemsAIX operating systemsPerforms a dynamic image backup. Linux operating systemsOracle Solaris operating
systemsAIX operating systemsbackup image
filelist Specifies a list of files to be processed for the command. The backup-archive client opens the designated file list and processes the files that are listed within according to the command.
archive
backup group
delete archive
delete backup
expire
incremental
query archive
query backup
restore
retrieve
selective
filename Use the filename option with the query systeminfo command to specify a file name in which to store the system information. query systeminfo
filesonly Backs up, restores, retrieves, or queries files only.
archive
incremental
query archive
query backup
restore
restore backupset
retrieve
selective
fromdate Use the fromdate option with the fromtime option to specify a date and time from which you want to search for backups or archives during a restore, retrieve, or query operation.
delete backup
query archive
query backup
restore
restore group
retrieve
fromnode Permits one node to perform commands for another node. A user on another node must use the set access command to permit you to query, restore, or retrieve files or images for the other node.
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsquery archive
query backup
query filespace
query group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsquery image
query mgmtclass
restore
restore group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
retrieve
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsfromowner Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsDisplays file spaces for another owner. Also specifies another owner from which to restore or retrieve files. Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
query archive
query backup
query group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsquery image
restore
restore group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
retrieve
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsfromtime Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsSpecifies a beginning time on the specified date. Use with the fromdate option. This option is ignored if the fromdate option is absent. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
query archive
query backup
restore
restore group
retrieve
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsgroupname Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsSpecifies the fully qualified name for a group. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
backup group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsifnewer Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsReplaces existing files with the latest backup version only if the backup version is newer than the existing version. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
restore
restore backupset
restore group
retrieve
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsimagetofile Linux operating systemsOracle Solaris operating
systemsAIX operating systemsUse the imagetofile option with the restore image command to specify that you want to restore the source image to a file. You might need to restore the image to a file in the event of bad sectors present on the target volume, or if you want to do some manipulations with the image data.

Linux operating systemsOracle Solaris operating
systemsAIX operating systemsThis option is valid for AIX, Linux, and Oracle Solaris clients.

Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
Windows operating systemsimagetofile Windows operating systemsUse the imagetofile option with the restore image command to specify that you want to restore the source image to a file. You might need to restore the image to a file in the event of bad sectors present on the target volume, or if you want to do some manipulations with the image data. Windows operating systemsrestore image
inactive Displays a list of active and inactive files when used with the pick option.
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsdelete group
query backup
query group
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsquery image
query nas
restore
restore group
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
restore nas
Windows operating systemsdelete group
query backup
query group
query image
query nas
query systemstate
restore
restore group
restore image
restore nas
restore systemstate
incrbydate Requests an incremental backup by date. incremental
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsincremental Linux operating systemsOracle Solaris operating
systemsAIX operating systemsApplies changes to the base image by using information from incremental backups that are made after the original image backup.

Linux operating systemsOracle Solaris operating
systemsAIX operating systemsThis option is valid only for AIX, Linux x86_64, Linux on POWER®, and Oracle Solaris clients.

Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
Windows operating systemsincremental Windows operating systemsApplies changes to the base image by using information from incremental backups that are made after the original image backup. Windows operating systemsrestore image
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemslatest Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsRestores the most recent backup version of a file whether it is active or inactive. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
restore
restore group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsmode Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsUse the mode option with these commands, as follows:
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsbackup image
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsTo specify whether to perform a selective or incremental image backup of client file systems.
backup nas
To specify whether to perform a full or differential image backup of NAS file systems.
backup group
To specify whether to perform a full or differential group backup that contains a list of files from one or more file space origins.
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
backup group
backup nas
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsbackup image
restore nas
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsmonitor Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems

Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsSpecifies whether you want to monitor an image backup or restore of one or more file systems that belong to a network-attached storage (NAS) file server.

Mac OS X operating
systemsSpecifies whether you want to monitor a restore of one or more file systems that belong to a network-attached storage (NAS) file server.

Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
backup nas
restore nas
AIX operating systemsnojournal AIX operating systemsUse this option with the incremental command to specify that you want to perform the traditional full incremental backup, instead of the default journal-based backup. AIX operating systemsincremental
Windows operating systemsnojournal Windows operating systemsUse this option with the incremental command to specify that you want to perform the traditional full incremental backup, instead of the default journal-based backup. Windows operating systemsincremental
Mac OS X operating
systemsnoprompt Mac OS X operating
systemsSuppresses the confirmation prompt that is presented by the delete group, delete archive, expire, and set event commands. Mac OS X operating
systems
delete archive
delete backup
delete group
expire
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsnoprompt Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsSuppresses the confirmation prompt that is presented by the delete group, delete archive, expire, restore image, and set event commands. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systems
delete archive
delete backup
delete group
expire
restore image
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsoptfile Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsSpecifies the client user-options file that you want to use when you start a backup-archive client session. Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsdsmc
Windows operating systemsoptfile Windows operating systemsSpecifies the client options file you want to use when you start a backup-archive client session. Windows operating systemsdsmc.exe
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemspick Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsCreates a list of backup versions, images, or archive copies that match the file specification you enter. From the list, you can select the versions to process. Include the inactive option to view both active and inactive objects. Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
delete archive
delete group
expire
query nas
restore
restore group
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
restore nas
retrieve
Windows operating systemspick Windows operating systemsCreates a list of backup versions, images, or archive copies that match the file specification you enter. From the list, you can select the versions to process. Include the inactive option to view both active and inactive objects. Windows operating systems
delete archive
delete group
expire
query nas
restore
restore asr
restore group
restore image
restore nas
retrieve
pitdate Use the pitdate option with the pittime option to establish a point in time for which you want to display or restore the latest version of your backups.
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsquery backup
query group
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsquery image
query nas
restore
restore group
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
restore nas  
Windows operating systemsquery backup
query group
query image
query nas
query systemstate
restore
restore group
restore image
restore nas
restore systemstate
All query and restore
system object
commands
pittime Use the pittime option with the pitdate option to establish a point in time for which you want to display or restore the latest version of your backups.
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsquery backup
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsquery image
query nas
restore
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
restore nas
Windows operating systemsquery backup
query image
query nas
query systemstate
restore
restore image
restore nas
restore systemstate
All query and
restore system
object commands
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemspreservepath Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsSpecifies how much of the source path to reproduce as part of the target directory path when you restore or retrieve files to a new location. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
restore
restore backupset
restore group
retrieve
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsremoveoperandlimit Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsSpecifies that IBM Storage Protect removes the 20-operand limit. If you specify the removeoperandlimit option with the incremental, selective, archive, or backup image command, the 20-operand limit is not enforced and is restricted only by available resources or other operating system limits. Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
incremental
selective
archive
backup image
Windows operating systemsrunasservice Windows operating systemsForces the client command process to continue running, even if the account that started the client logs off. Use this option on all Windows clients. Windows operating systemsschedule
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsshowmembers Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsDisplays all members of a group. Linux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
query group
restore group
Windows operating systemsshowmembers Windows operating systemsDisplays all members of a group. Windows operating systems
query group
query systemstate
restore group
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemstodate Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsUse the todate option with the totime option to specify an ending date and time to which you want to search for backups or archives during a restore, retrieve, or query operation. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
query archive
query backup
restore
restore group
retrieve
Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemstotime Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systemsUse the totime option with the todate option to specify an ending date and time to which you want to search for backups or archives during a restore, retrieve, or query operation. Windows operating systemsLinux operating systemsOracle Solaris operating
systemsAIX operating systemsMac OS X operating
systems
query archive
query backup
restore
restore group
retrieve
type Use the type option with the query node command to specify the type of node to query. query node
v2archive Use the v2archive option with the archive command to archive only files to the server. The client will not process directories that exist in the path of the source file specification.
archive
Linux operating systemsOracle Solaris operating
systemsAIX operating systemsverifyimage Linux operating systemsOracle Solaris operating
systemsAIX operating systemsUse the verifyimage option with the restore image command to specify that you want to enable detection of bad sectors on the destination target volume. If bad sectors are detected on the target volume, the client issues a warning message on the console and in the error log.

Linux operating systemsOracle Solaris operating
systemsAIX operating systemsThis option is valid for AIX, Linux, and Oracle Solaris clients.

Linux operating systemsOracle Solaris operating
systemsAIX operating systemsrestore image
Windows operating systemsverifyimage Windows operating systemsUse the verifyimage option with the restore image command to specify that you want to enable detection of bad sectors on the destination target volume. If bad sectors are detected on the target volume, the client issues a warning message on the console and in the error log. This option is valid for all Windows clients. Windows operating systemsrestore image
virtualfsname Specifies the name of the virtual file space for the group on which you want to run the operation.
backup group