![]() |
![]() |
[ | | | ]
Tivoli Storage Manager provides a command line interface (CLI) that you can
use as an alternative to the graphical user interface (GUI). This
chapter describes how to start or end a client command session and how to
enter commands. Table 60 shows a list of tasks related to entering commands.
Command | Description | Page |
---|---|---|
archive | Archives files from a workstation to Tivoli Storage Manager storage. | Archive |
backup group | Creates and backs up a group containing a list of files from one or more file space origins to a virtual file space on the Tivoli Storage Manager server. | Backup Group |
backup image | Creates an image backup of one or more file systems or logical volumes that you specify. | Backup Image |
backup nas | Creates an image backup of one or more file systems belonging to a Network Attached Storage (NAS) file server. | Backup NAS |
backup was | Backs up the WebSphere Application Server (WAS) Network Deployment Manager (contains setup, application files, and configuration information) or the Application Server to the Tivoli Storage Manager server. | Backup WAS |
cancel process | Displays a list of current NAS (if NDMP support is enabled) image backup and restore processes for which the administrative user has authority. | Cancel Process |
cancel restore | Displays a list of restartable restore sessions from which you can select one to cancel. | Cancel Restore |
delete access | Deletes authorization rules for files or images that are stored on the server. | Delete Access |
delete archive | Deletes archived files from Tivoli Storage Manager server storage. | Delete Archive |
delete filespace | Deletes file spaces in Tivoli Storage Manager server storage. | Delete Filespace |
delete group | Deletes a group backup on the Tivoli Storage Manager server. | Delete Group |
expire | Inactivates backup objects that you specify in the file specification or with the filelist option. | Expire |
help | Displays a Table of Contents of help topics for the command line client.. | Help |
incremental | Backs up all new or changed files or directories in the default client domain or from file systems, directories, or files you specify, unless you exclude them from backup services. | Incremental |
loop | Starts an interactive command session. | Loop |
macro | Executes commands within a macro file that you specify. | Macro |
monitor process | Displays a list of current NAS image backup and restore processes from which you can select one to cancel. | Monitor Process |
query access | Displays a list of current authorization rules. | Query Access |
query archive | Displays a list of archived files. | Query Archive |
query backup | Displays a list of backup versions. | Query Backup |
query backupset | Queries a backup set from a local file, tape device, or the Tivoli Storage Manager server. | Query Backupset |
query filespace | Displays a list of file spaces in Tivoli Storage Manager storage. You can also specify a single file space name to query. | Query Filespace |
query group | Displays information about group backups and their members. | Query Group |
query image | Displays information about image backups. | Query Image |
query inclexcl | Displays a list of include-exclude statements in the order in which they are processed during backup and archive operations. | Query Inclexcl |
query mgmtclass | Displays information about available management classes. | Query Mgmtclass |
query node | Displays all the nodes for which an administrative user ID has authority to perform operations. | Query Node |
query options | Displays all or part of your options and their current settings. | Query Options |
query restore | Displays a list of your restartable restore sessions in the server database. | Query Restore |
query schedule | Displays information about scheduled events for your node. | Query Schedule |
query session | Displays information about your session, including the current node name, when the session was established, server information, and server connection information. | Query Session |
query systeminfo | Gathers Tivoli Storage Manager system information and outputs this information to a file or the console. | Query Systeminfo |
query was | Displays backups of the WebSphere Application Server (WAS) Network Deployment Manager (contains setup, application files, and configuration information) or the Application Server that match the node name and type of the WAS group backup that you specify. | Query WAS |
restart restore | Displays a list of restartable restore sessions from which you can one to restart. | Restart Restore |
restore | Restores copies of backup versions of your files from a Tivoli Storage Manager server. | Restore |
restore backupset | Restores a backup set from the Tivoli Storage Manager server or a local file. You can also restore a backup from a tape device. | Restore Backupset |
restore group | Restores specific members or all members of a group backup. | Restore Group |
restore image | Restores a file system or raw volume image backup. | Restore Image |
restore nas | Restores the image of a file system belonging to a Network Attached Storage (NAS) file server. | Restore NAS |
restore was | Restores the WebSphere Application Server (WAS) Network Deployment Manager (contains setup, application files, and configuration information) or the Application Server from the Tivoli Storage Manager server. | Restore WAS |
retrieve | Retrieves copies of archived files from the Tivoli Storage Manager server. | Retrieve |
schedule | Starts the client scheduler on the workstation. | Schedule |
selective | Backs up selected files. | Selective |
set access | Authorizes another user to access your backup versions, archived copies, or image backups.. | Set Access |
set password | Changes the Tivoli Storage Manager password for your workstation. | Set Password |
set waspassword | When WAS security is enabled, this command allows you to set your WebSphere node name, user name, and password for the WAS Network Deployment Manager or the Application Server. | Set Waspassword |
You can start or end a client command session in either batch mode or interactive mode. Use batch mode when you want to enter a single client command. Tivoli Storage Manager processes the command and returns to the shell command prompt.
Use interactive mode when you want to enter a series of commands. Since Tivoli Storage Manager establishes connection to the server only once for interactive mode, a series of commands can process more quickly. Tivoli Storage Manager processes the commands and returns to the tsm> prompt.
When you enter a single command in batch mode, precede it with the executable program name, dsmc. Tivoli Storage Manager processes the command and returns to the shell command prompt. For example, to process the incremental command in batch mode, you would enter:
dsmc incremental
Tivoli Storage Manager prompts you each time you enter a command if the passwordaccess option is set to prompt and authentication on the server is set to On. Type your password and press Enter.
You can also enter your password using the password option with a command, but your password appears on the screen. For example, if your password is secret, enter:
dsmc incremental -password=secret
If you set the passwordaccess option to generate in your dsm.opt file, you do not need to specify the password with the command. Tivoli Storage Manager only prompts you for your password if you are registering your workstation with a server or manually changing your password.
Use the interactive mode (or loop mode) to enter a series of commands. Enter dsmc on the command line and press Enter. When the tsm> command prompt appears, type the command name and press Enter. Do not precede each command with the executable program name, dsmc. Alternatively, you can enter dsmc loop on the command line to start a client command session in interactive mode. Loop is the default command for dsmc.
If a password is required, Tivoli Storage Manager prompts you before you enter the first command. Type your user ID and password and press Enter. You can also enter your password using the password option with the loop command, but your password appears on the screen. For example, if your password is secret, enter:
dsmc loop -password=secret
To end an interactive session, enter quit at the prompt.
Notes:
Waiting for mount of offline mediaIn this case, the mount point is not released until one of the following conditions is met:
A client command can include one or more of these components:
The sections that follow describe each of these components.
The first part of a command is the command name. The command name consists of a single word, such as help or schedule, or an action word and an object for that action, such as query archive. Enter the full command name, or its minimum abbreviation. For example, you can enter any of the following versions of the query schedule command:
query schedule q sc q sched query sc
There are two groups of options that you can use with commands:
In interactive mode, options you enter on the initial command line will override the value that you specified in your client user options file (dsm.opt) or client system options file (dsm.sys). This value remains in effect for the entire interactive session unless overridden by a different value on a given interactive command. For example, if you set the subdir option to yes in your client user options file (dsm.opt), and you specify -subdir=no on the initial command line, the -subdir=no setting remains in effect for the entire interactive session unless overridden by the -subdir=yes value on a given interactive command. However, the subdir=yes value only affects the command it is entered on. When that command completes, the value reverts back to -subdir=no, the value at the beginning of the interactive session.
Commands can have required parameters, optional parameters, or no parameters at all. Required parameters provide information to perform a task. The most commonly required parameter is a file specification. For example, if you want to archive a file named budget.fin from the /project directory, you would enter:
dsmc archive /project/budget.fin
Some commands have optional parameters. If you do not enter a value for an optional parameter, Tivoli Storage Manager uses the default value. For example, the restore command includes a required parameter, sourcefilespec, that specifies the path and file name in storage that you want to restore. The optional parameter, destinationfilespec, specifies the path and file name where you want to place the restored files. If you do not specify the destinationfilespec, by default Tivoli Storage Manager restores the files to the original source path. If you want to restore the files to a different directory, enter a value for destinationfilespec. For example, to restore the /project/budget.fin file to /newproj/newbudg.fin, enter:
dsmc restore /project/budget.fin /newproj/newbudg.fin
Enter parameters in the order indicated in the command syntax diagram.
Use the following syntax rules when entering file specification parameters, such as filespec, sourcefilespec, and destinationfilespec:
dsmc restore "/fs/dir1/*" mydir/
dsmc i /fsThe following example is not valid:
dsmc sel /fs
When entering a destinationfilespec, if the name ends with /, then it is considered a directory, otherwise it is considered a file.
The following example illustrates these two rules. Even though mydir and yourdir are directories, the command will fail because /* is implied after mydir, and yourdir is considered a file:
restore /home/mydir/ /away/yourdir
The following example illustrates the second rule. Even though mydir and yourdir are directories, the command will fail because mydir and yourdir are considered files:
restore /home/mydir /away/yourdir
set access backup /home/* * * set access backup /home/*/* * *
Do not use wildcards for the directory path name, for example:
/home/j*asler/file1.c
Notes:
If you set the editor option to yes in your client options file (dsm.opt), Tivoli Storage Manager permits you to recall and edit as many as 20 previously entered commands by using the Up arrow and Down arrow keys. If you set the editor option to no, the feature to recall previous commands is not active. If the editor and command retrieve functions are not working on a specific workstation setting, you should turn off the editor option. For more information regarding the editor option, see Editor.
Pressing the Up arrow key displays the previous command in memory. Pressing the Down arrow key displays the next command in memory. Table 62 lists other functions you can perform when you recall commands.
Note: Because of the limited functionality of the dtterm
application, not all function keys of the command line clients operate as
expected. The Control-Left and Control-Right combinations and the Home
and End key do not work.
Table 62. Command recall and edit functions
Function | Press |
---|---|
Display the previous command in memory. | Up arrow |
Display the next command in memory. | Down arrow |
Move to the beginning of the command. | Home |
Move to the end of the command. | End |
Move to the left. | Left arrow |
Move to the right. | Right arrow |
Move five spaces to the left. | Tab left |
Move five spaces to the right. | Tab right |
Move to the beginning of the previous word | Ctrl-left arrow or CTRL-L |
Move to the beginning of the next word. | Ctrl-right arrow or CTRL-R |
Delete a character to the right of the cursor. | Delete |
Delete a character to the left of the cursor. | Backspace |
Insert a character. | Toggle the Insert key |
Erase to the end of the line. | Ctrl-delete or Ctrl-D |
Finish or execute the command. | Enter |
Quit the program. | F3 or Esc |
End the program. | CTRL-C |
In a command, you can use wildcard characters in the file name or file extension only. You cannot use them to specify destination files, file systems, or directories. You cannot specify a directory whose name contains an asterisk (*) or a question Mark (?). Tivoli Storage Manager recognizes these characters only as wildcard characters. Use wildcard characters when you want to specify multiple files with similar names in one command. Without wildcard characters, you must repeat the command for each file. Valid wildcard characters that you can use include:
Table 63 shows examples of each wildcard.
Pattern | Matches | Does not match |
---|---|---|
Asterisk (*) |
|
|
ab* | ab, abb, abxxx | a, b, aa, bb |
ab*rs | abrs, abtrs, abrsrs | ars, aabrs, abrss |
ab*ef*rs | abefrs, abefghrs | abefr, abers |
abcd.* | abcd.c, abcd.txt | abcd, abcdc, abcdtxt |
Question Mark (?) |
|
|
ab? | abc | ab, abab, abzzz |
ab?rs | abfrs | abrs, abllrs |
ab?ef?rs | abdefjrs | abefrs, abdefrs, abefjrs |
ab??rs | abcdrs, abzzrs | abrs, abjrs, abkkkrs |
Note: In batch mode, you must enclose values containing wildcards in double quotes. For example:
dsmc selective "/home/me/*.c"
Because the shell expands unquoted wildcards, it is easy to exceed the 20 operand limit in batch mode. It is more efficient to let the client process wildcard file specifications because many fewer server interactions are needed to complete the task.
Follow the general rules below when you enter commands:
The following sections contain detailed information about each of the Tivoli Storage Manager commands. Information for each command includes:
The archive command archives a single file, selected files, or all files in a directory and its subdirectories on a server.
Archive files that you want to preserve in their current condition. To release storage space on your workstation, delete files as you archive them using the deletefiles option. Retrieve the archived files to your workstation whenever you need them again.
See File system and ACL support for supported file systems and ACL support.
|You can use the removeoperandlimit option to specify that Tivoli |Storage Manager removes the 20-operand limit for UNIX-family platforms. |If you specify the removeoperandlimit option with the |archive command, the 20-operand limit is not enforced and is |restricted only by available resources or other operating system |limits. See Removeoperandlimit
Use the snapshotroot option with the archive command in conjunction with a third-party application that provides a snapshot of a logical volume, to associate the data on the local snapshot with the real file space data that is stored on the Tivoli Storage Manager server. The snapshotroot option does not provide any facilities to take a volume snapshot, only to manage data created by a volume snapshot. See Snapshotroot for more information.
Supported Clients
This command is valid for all UNIX clients.
Syntax
.-----------------. V | >>-Archive--+----------+----+- filespec---+-+------------------>< '- options-' '- "filespec"-'
Parameters
Table 64. Archive command: Related options
Option | Where to use | Page |
archmc | Command line only. | Archmc |
archsymlinkasfile | Client user options file (dsm.opt) or command line. | Archsymlinkasfile |
changingretries | Client system options file (dsm.sys) or command line. | Changingretries |
compressalways | Client user options file (dsm.opt) or command line. | Compressalways |
compression | Client system options file (dsm.sys) within a server stanza or command line. | Compression |
deletefiles | Command line only. | Deletefiles |
description | Command line only. | Description |
dirsonly | Command line only. | Dirsonly |
filelist | Command line only. | Filelist |
filesonly | Command line only. | Filesonly |
preservelastaccessdate | Client user options file (dsm.opt) or command line. | Preservelastaccessdate |
removeoperandlimit | Command line only. | Removeoperandlimit |
snapshotroot | Command line only. | Snapshotroot |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
tapeprompt | Client user options file (dsm.opt) or command line. | Tapeprompt |
v2archive | Command line only. | V2archive |
Examples
Command: archive /home/proj1/budget
Command: archive "/home/proj1/*.txt"
Command: archive -subdir=yes "/home/*"
Command: dsmc archive /usr/dir1/sub1/ -subdir=yes -snapshotroot=/snapshot/day1
Authorized User
Use the backup group command to create and back up a group containing a list of files from one or more file space origins to a virtual file space on the Tivoli Storage Manager server.
A group backup allows you to create a consistent point-in-time backup of a group of files that is managed as a single logical entity:
The backup group command requires the following options:
Notes:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Backup GRoup- options---------------------------------------><
Parameters
Table 65. Backup Group command: Related options
Option | Where to use | Page |
filelist | Command line only. | Filelist |
groupname | Command line only. | Groupname |
mode | Command line only. | Mode |
virtualfsname | Command line only. | Virtualfsname |
Examples
Command:
backup group -filelist=/home/dir1/filelist1 -groupname=group1 -virtualfsname=/virtfs -mode=full
The backup image command creates an image backup of one or more volumes on your system.
Notes:
The Tivoli Storage Manager client must support the raw device type on the specific platform to perform an image backup of a raw device. You can only perform an image backup on local devices. Clustered devices or file systems as well as devices or file systems shared between two or more systems are not supported. If you want to perform an image backup for a file system mounted on a raw device, the raw device must be supported. See Volume device type support for an image backup for specific information about supported devices for the backup image command.
Use the include.image option to include a file system or logical volume for image backup, or to specify volume-specific options for image backup.
The backup image command uses the compression option value specified in the dsm.sys. You can also specify the compression option with the backup image command.
The traditional image backup prevents write access to the volume by other system applications during the operation. Use the imagetype=dynamic option to back up the volume as is without remounting it read-only. Corruption of the backup may occur if applications write to the volume while the backup is in progress. In this case, run fsck after a restore.
For Linux86 and Linux IA64 clients only: Tivoli Storage Manager performs a snapshot image backup of file systems residing on a logical volume created by the Linux Logical Volume Manager during which the volume is available to other system applications. Snapshot image backup requires a Version 5.1 Tivoli Storage Manager server.
You can use the imagetype option with the backup image command or the include.image option to specify whether to perform a static, dynamic, or snapshot image backup. See Imagetype for more information.
The Linux Logical Volume Manager allows the creation of a snapshot of a logical volume while the logical volume itself is still online. The snapshot is created inside the same volume group as the source logical volume. You must ensure that the volume group provides enough free disk space to create the snapshot. The snapshot contains the old data blocks while the modified data is stored in the source logical volume. Use the snapshotcachesize option with the backup image command, in the dsm.opt file, or with the include.image option to specify an appropriate snapshot size so that all old data blocks can be stored while the image backup occurs. A snapshot size of 100 percent will ensure a valid snapshot. See Snapshotcachesize for more information.
There are two methods of utilizing image backups to perform efficient incremental backups of your file system. These backup methods allow you to perform point-in-time restore of your file systems and improve backup and restore performance. You can perform the backup only on formatted volumes; not on raw logical volumes. You can use one of the following methods to perform image backups of volumes with mounted file systems.
dsmc incremental /myfilesystem
dsmc backup image /myfilesystem
dsmc incremental /myfilesystemYou must follow these steps in the order shown to ensure that the server records additions and deletions accurately.
dsmc restore image /myfilesystem -incremental -deletefilesDuring the restore, the client does the following:
If you do not follow the steps exactly, two things can occur:
dsmc backup image /myfilesystem
dsmc backup image /myfilesystem -mode=incrementalThis sends only those files that were added or changed since the last image backup to the server. For more information, see Mode.
dsmc backup image /myfilesystem
dsmc restore image /myfilesystem -incrementalOn restore, Tivoli Storage Manager ignores the deletefiles option when the image+image incremental technique of backing up has been used. The restore will include files that were deleted after the last full image backup plus the latest versions of files added or changed after the last image backup.
The following restrictions apply when using method 2:
To help you decide which method is appropriate for your environment, see Comparing methods 1 and 2.
Supported Clients
This command is valid for AIX, HP-UX, all Linux clients, and Solaris.
Syntax
.-----------------. V | >>-Backup Image--+----------+----+-------------+-+------------->< '- options-' +- filespec---+ '- "filespec"-'
Parameters
Table 66. Backup Image command: Related options
Option | Where to use | Page |
compressalways | Client user options file (dsm.opt) or command line. | Compressalways |
compression | Client system options file (dsm.sys) or command line. | Compression |
imagetype | Use with the backup image command or the include.image option in your client system options file (dsm.sys). | Imagetype |
mode | Command line only. | Mode |
snapshotcachesize | Use with the backup image command, the include.image option, or in the dsm.opt file. | Snapshotcachesize |
Specify the file space over which the logical volume is mounted or the logical volume name. If there is a file system configured in the system for a given volume, you cannot back up the volume with the device name. For example, if /dev/lv01 is mounted on /home you can issue backup image /home but backup image /dev/lv01 will fail with an error: ANS1063E Invalid path specified.
For Sun systems: Specify either a file system name or a raw device name (block device type).
Examples
Command: dsmc backup image /home/test -mode=incremental
Command: dsmc backup image /home -imagetype=static
Command: dsmc backup image /home -imagetype=snapshot
Command: dsmc backup image /dev/lv01
The backup nas command creates an image backup of one or more file systems belonging to a Network Attached Storage (NAS) file server. The NAS file server performs the outboard data movement. A server process starts in order to perform the backup.
Use the nasnodename option to specify the node name for the NAS file server. When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID. The NAS node name identifies the NAS file server to the Tivoli Storage Manager server; the NAS node name must be registered at the server. Place the nasnodename option in your client system options file (dsm.sys). The value in the client system options file is the default, but can be overridden on the command line. See Nasnodename for more information.
Use the toc option with the backup nas command or the include.fs.nas option to specify whether Tivoli Storage Manager saves Table of Contents (TOC) information for each file system backup. See Toc for more information. If you save TOC information, you can use the query toc server command to determine the contents of a file system backup in conjunction with the restore node server command to restore individual files or directory trees. You can also use the Tivoli Storage Manager Web client to examine the entire file system tree and select files and directories to restore. Creation of a TOC requires that you define the TOCDESTINATION attribute in the backup copy group for the management class to which this backup image is bound. Note that TOC creation requires additional processing, network resources, storage pool space, and possibly a mount point during the backup operation. If you do not save TOC information, you can still restore individual files or directory trees using the restore node server command, provided that you know the fully qualified name of each file or directory and the image in which that object was backed up. The toc option is only supported for images backed up by version 5.2 or later client and server.
Use the mode option to specify whether to perform a full or differential NAS image backup. A full image backup backs up the entire file system. The default is a differential NAS image backup on files that change after the last full image backup. If an eligible full image backup does not exist, a full image backup is performed. See Mode for more information.
Use the monitor option to specify whether you want to monitor a NAS file system image backup and display processing information on your screen. See Monitor.
Use the monitor process command to display a list of all processes for which an administrative user ID has authority. The authorized administrative user ID should have at least client owner authority over both the NAS node and the client workstation node they are using either from command line or from the web.
Use the cancel process command to stop NAS back up processing. For more information, see Cancel Process.
Regardless of client platform, NAS file system specifications use the forward slash (/) separator, as in this example: /vol/vol0.
Supported Clients
This command is valid for AIX and Solaris clients only.
Syntax
.---------------. V | >>-Backup NAS--+----------+------ filespec---+----------------->< '- options-'
Parameters
Table 67. Backup NAS command: Related options
Option | Where to use | Page |
mode | Command line only. | Mode |
monitor | Command line only. | Monitor |
nasnodename | Client system options file (dsm.sys) or command line. | Nasnodename |
toc | Command line or with the include.fs.nas option in your client system options file (dsm.sys). | Toc |
If you do not specify the filespec or the domain.nas option, the default all-nas value is used for domain.nas and all file systems on the NAS file server are backed up.
Examples
Command: backup nas -mode=full -nasnodename=nas1 /vol/vol0 /vol/vol2
Command: backup nas -nasnodename=nas1
Command: backup nas -mode=full -nasnodename=netappsj /vol/vol0 -toc=yes
Root User
The backup was command specifies whether to back up the WebSphere Application Server (WAS) Network Deployment Manager (contains setup, application files, and configuration information) or the Application Server (also contains setup, application files, and configuration information) to the Tivoli Storage Manager server. You can back up both the Network Deployment Manager and the Application Server using separate sessions.
Notes:
|To determine if WAS security is enabled, enter the following command:
| dsmc query was -wast=local
|Tivoli Storage Manager displays the WAS security status under the |Sec heading.
Supported Clients
This command is valid for AIX, Solaris, and Linux86 clients.
Syntax
>>-Backup WAs--+----------+-- --nodename----------------------->< '- options-'
Parameters
Table 68. Backup WAS command: Related options
Option | Where to use | Page |
mode | Command line only. | Mode |
wastype | Command line only. | Wastype |
Examples
Command: backup was wasnode
Command: backup was ednode_instance1 -wastype=app
Command: backup was ednode_instance2 -wastype=nd -mode=differential
The cancel process command displays a list of current NAS (if NDMP support is enabled) image backup and restore processes for which the administrative user has authority. From the list, the administrative user can select one process to cancel. Client owner privilege is sufficient authority to cancel the selected NAS image backup or restore processes.
When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID.
Supported Clients
This command is valid for AIX and Solaris clients only.
Syntax
>>-Cancel Process----------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: cancel process
The cancel restore command displays a list of your restartable restore sessions in the server database. You can only cancel one restartable restore session at a time. Run the cancel restore command again to cancel additional restores. To restart restartable restore sessions, use the restart restore command.
Use the cancel restore command when:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Cancel Restore----------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: cancel restore
The delete access command deletes authorization rules for files or images that are stored on the server. When you delete an authorization rule, you revoke user access to any files or images specified by that rule.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Delete ACcess-----------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: delete access
See the following screen example:
Index Type Node Owner Path _____ _______ ____________________________________ 1 Backup NODE1 USER1 home/dev/proja/list/ 2 Archive NODE3 LUIE home/fin/budg/depta/ 3 Backup NODE4 USER2 home/plan/exp/deptc/ 4 Archive NODE5 USER2S home/mfg/invn/parta/ Enter Index of rule(s) to delete, or quit to cancel:
To delete the authorization rules that let luie and user2s access your files or images, type: 2 4 or (2,4) and press Enter.
The delete archive command deletes archived files from Tivoli Storage Manager server storage. Your administrator must give you authority to delete archived files.
Attention: When you delete archived files, you cannot retrieve them. Verify that the files are obsolete before you delete them.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Delete ARchive--+----------+--+- filespec---+--------------->< '- options-' '- "filespec"-'
Parameters
Table 69. Delete Archive command: Related options
Option | Where to use | Page |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
description | Command line only. | Description |
filelist | Command line only. | Filelist |
noprompt | Command line only. | Noprompt |
numberformat | Client user options file (dsm.opt) or command line. | Numberformat |
pick | Command line only. | Pick |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
tapeprompt | Client user options file (dsm.opt) or command line, | Tapeprompt |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
Examples
Command: delete archive /user/home/proj1/budget
Command: del arch "/user/home/proj1/*.txt"
Command: delete archive "/user/project/*" -pick
Authorized User
The delete filespace command deletes file spaces in Tivoli Storage Manager server storage. A file space is a logical space on the server that contains files or images you backed up or archived. Tivoli Storage Manager assigns a separate file space on the server for each workstation file system from which you back up or archive files. The file space name is the same as the file system name. When you enter the delete filespace command, a list of your file spaces displays. From this list, select the file space that you want to delete.
Your administrator must give you authority to delete a file space. You need BACKDEL authority if the file space you want to delete contains backup versions, or ARCHDEL authority if the file space contains archive copies. If the file space contains both backup versions and archive copies, you need both types of authority.
You can use the delete filespace command to interactively delete NAS file spaces from server storage.
Use the nasnodename option to identify the NAS file server. When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID. Place the nasnodename option in your client system options file (dsm.sys). The value in the client system options file is the default, but this value can be overridden on the command line. If the nasnodename option is not specified in the client system options file, you must specify this option on the command line when processing NAS file systems. See Nasnodename for more information.
Use the class option to specify the class of the file space to delete. To display a list of file spaces belonging to a NAS node so that you may choose one to delete, use the -class=nas option. Using the default, -class=client, will not change the current delete filespace behavior. See Class for more information.
To delete NAS file spaces using the Web client, see Chapter 4, Backing up your data.
Use the delete filespace command to delete a WAS file space on the Tivoli Storage Manager server.
Use the delete group command to delete WAS group backups on the Tivoli Storage Manager server. See Delete Group for more information.
Attention: When you delete a file space, you delete all backup versions and archive copies within that file space. When you delete a file space, you cannot restore the files or images. Verify that the files or images are obsolete before you delete them.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Delete Filespace--+----------+------------------------------>< '- options-'
Parameters
Table 70. Delete Filespace command: Related options
Option | Where to use | Page |
class | Command line only. | Class |
detail | Command line only. | Detail |
nasnodename | Client system options file (dsm.sys) or command line. | Nasnodename |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
Examples
Command: delete filespace
Command: delete filespace -nasnodename=dagordon -class=nas
Command: delete filespace
Authorized User
Use the delete group command to delete a group backup on the Tivoli Storage Manager server. You can also delete WAS group backups using this command.
After deleting a group, the group leader (virtualfsname) remains on the Tivoli Storage Manager server. It contains no members (file or directories) but is reported in a subsequent query filespace command. It will have no files listed if the showmembers option is added. Deleting a group does not remove the file space that it resides in because there may be other groups in it. Use delete filespace if you want to remove the file space and all the data it contains.
Notes:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Delete GRoup- filespec-+----------+------------------------->< '- options-'
Parameters
Table 71. Delete Group command: Related options
Option | Where to use | Page |
inactive | Command line only. | Inactive |
noprompt | Command line only. | Noprompt |
pick | Command line only. | Pick |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
Examples
Command:
delete group /vfs/group1
Command:
delete group /vfs/group1 -inactive -pick
Command: delete group /WAS_APPNODE/WASGROUP
Command: delete group /WAS_ND_NDNODE/WASGROUP -inactive -pick
The expire command inactivates the backup objects you specify in the file specification or with the filelist option.
When working in interactive mode, a prompt notifies you before files are expired.
The expire command does not remove workstation files. If you expire a file or directory that still exists on your workstation, the file or directory is backed up again during the next incremental backup unless you exclude the object from backup processing.
If you expire a directory that contains active files, those files will not appear in a subsequent query from the GUI. However, these files will display on the command line if you specify the proper query with a wildcard character for the directory.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-EXPire--+----------+---- filespec--------------------------->< '- options-'
Parameters
Table 72. Expire command: Related options
Option | Where to use | Page |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
filelist | Command line only. | Filelist |
noprompt | Command line only. | Noprompt |
numberformat | Client user options file (dsm.opt) or command line. | Numberformat |
pick | Command line only. | Pick |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
Examples
Command: expire "u/home/letter1.txt"
Command: expire u/admin/mydir/*
Command: expire -filelist=/home/avi/filelist.txt
The help command displays a Table of Contents of help topics for the command line client. Enter the number of the topic that you want to view. If there is more than one screen of topics, scroll backward or forward through the list. To exit, type q and press Enter.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Help--------------------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: help
The incremental command backs up all new or changed files or directories in the default client domain or from file systems, directories, or files you specify, unless you exclude them from backup services.
To incrementally back up selected files or directories, enter a file specification in the command. If you do not enter a file specification, the default is to back up files or directories in the default domain. See Domain for information on how to change which objects are included in the default domain.
The following attributes in the management class assigned to the file or directory affect whether the data is actually backed up:
For more information on management classes, see Chapter 8, "Understanding storage management policies".
Using the include option in an include-exclude list, you can override" the default management class for a file or group of files.
You can perform either a full incremental backup or an incremental by date backup. The default is a full incremental backup.
You can also use the selective command to perform a selective backup that backs up only the files, directories or empty directories that you specify regardless of whether they have changed. For more information, see Selective.
A full incremental backs up all files or directories that are new or have changed since the last incremental backup. During a full incremental backup, the client queries the server to determine the exact condition of your storage. Tivoli Storage Manager uses this information to:
|You can use the removeoperandlimit option to specify that Tivoli |Storage Manager removes the 20-operand limit for UNIX-family platforms. |If you specify the removeoperandlimit option with the |incremental command, the 20-operand limit is not enforced and is |restricted only by available resources or other operating system |limits. See Removeoperandlimit
An incremental-by-date backup backs up new and changed files with a modification date later than the date of the last incremental backup stored at the server, unless the files are excluded from backup by an exclude statement.
If an incremental-by-date is performed on only part of a file system, the date of the last full incremental is not updated, and the next incremental-by-date will back up these files again. Changes to the access control lists (ACL) are not backed up during an incremental-by-date. Use the query filespace command to determine the date and time of the last incremental backup of the entire file system.
To perform an incremental-by-date backup, use the incrbydate option with the incremental command.
Unlike a full incremental, an incremental-by-date does not maintain current server storage of all your workstation files because:
For these reasons, if you have limited time during the week to perform backups, but extra time on the weekends, you can perform an incremental-by-date backup on weekdays and a full incremental backup on weekends to maintain current server storage of your workstation files.
If the incremental command is retried because of a communication failure or session loss, the transfer statistics will display the number of bytes Tivoli Storage Manager attempted to transfer during all command attempts. Therefore, the statistics for bytes transferred may not match the file statistics, such as those for file size.
Use the snapshotroot option with the incremental command in conjunction with a third-party application that provides a snapshot of a logical volume, to associate the data on the local snapshot with the real file space data that is stored on the Tivoli Storage Manager server. The snapshotroot option does not provide any facilities to take a volume snapshot, only to manage data created by a volume snapshot. See Snapshotroot for more information.
Supported Clients
This command is valid for all UNIX clients.
Syntax
.-----------------. V | >>-Incremental--+----------+----+-------------+-+-------------->< '- options-' +- filespec---+ '- "filespec"-'
Parameters
Table 73. Incremental command: Related options
Option | Where to use | Page |
changingretries | Client system options file (dsm.sys) or command line. | Changingretries |
compressalways | Client user options file (dsm.opt) or command line. | Compressalways |
compression | Client system options file (dsm.sys) within a server stanza or command line. | Compression |
dirsonly | Command line only. | Dirsonly |
domain | Client system options file (dsm.sys) or the client user options file (dsm.opt) or command line only. | Domain |
filelist | Command line only. | Filelist |
filesonly | Command line only. | Filesonly |
incrbydate | Command line only. | Incrbydate |
memoryefficientbackup | Client user options file (dsm.opt) or command line. | Memoryefficientbackup |
preservelastaccessdate | Client user options file (dsm.opt) or command line. | Preservelastaccessdate |
removeoperandlimit | Command line only. | Removeoperandlimit |
snapshotroot | Command line only. | Snapshotroot |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
tapeprompt | Client user options file (dsm.opt) or command line. | Tapeprompt |
If you specify a file system, all new and changed files are backed up. In addition, the last incremental date for the file space is updated on the server. If you specify a file or directory, the last incremental date is not updated. This means the file or directory might be backed up again if a later backup is performed using the incrbydate option.
If you specify a file system, specify the file system without a trailing slash.
Examples
Command: Incremental
Command: Incremental /home /usr /proj
Command: Incremental /proj/test/
Command: Incremental -incrbydate /home
Command: Incremental -subdir=yes /fs/dir1/abc
Command: Incremental /fs/dir1
Command: Incremental -subdir=yes /fs/dir1/
Command: dsmc inc /usr -snapshotroot=/snapshot/day1
The loop command starts an interactive command line session that is maintained until you enter quit.
If you are required to enter a password, you will be prompted for it before the loop mode prompt appears.
In an interactive command line session, it is unnecessary to precede each command name with dsmc and your password, if one is required.
In interactive mode, options you enter on the initial command line will override the value that you specified in your client user options file (dsm.opt) or client system options file (dsm.sys). This value remains in effect for the entire interactive session unless overridden by a different value on a given interactive command. For example, if you set the subdir option to yes in your client user options file (dsm.opt), and you specify -subdir=no on the initial command line, the -subdir=no setting remains in effect for the entire interactive session unless overridden by the -subdir=yes value on a given interactive command. However, the subdir=yes value only affects the command it is entered on. When that command completes, the value reverts back to -subdir=no, the value at the beginning of the interactive session.
You can enter all valid commands in interactive mode except the schedule and loop commands.
There are some options that you cannot use in the interactive session created by the loop command and are identified in the option description by this statement: This option is valid only on the initial command line. It is not valid in interactive mode.
See Chapter 9, Using processing options for options that you cannot use in interactive mode.
Notes:
Waiting for mount of offline mediaIn this case, the mount point is not released until one of the following conditions is met:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-LOOP--------------------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: dsmc
At the tsm> prompt, enter a command.
The macro command executes a series of commands that you specify in a macro file. By including the macro command within a macro file, you can nest as many as ten levels of commands.
Comment lines are not supported within the macro file that you specify for the macro command.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-MAcro- macroname--------------------------------------------><
Parameters
Examples
The following is an example of how to use the macro command.
Command: macro backabc.mac
where backabc.mac contains the following statements:
Selective /devel/project/proja/ Selective /devel/project/projb/ Selective /devel/project/projc/
The monitor process command displays a list of current NAS (if NDMP support is enabled) image backup and restore processes for which the administrative user has authority. The administrative user can then select one process to monitor. Client owner privilege is sufficient authority to monitor the selected NAS image backup or restore processes.
When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID.
Supported Clients
This command is valid for AIX and Solaris clients only.
Syntax
>>-MONitor Process---------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: monitor process
The query access command displays a list of users to whom you have given access to backup versions or archive copies of specific files. Tivoli Storage Manager displays a list of authorization rules that you defined with the set access command or with Node Access List on the graphical user interface (GUI) Utilities menu. The information includes:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query ACcess------------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: query access
The query archive command displays a list of your archived files and the following information about each file:
If you use the detail option with the query archive command, the client displays the following additional information:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query ARchive--+----------+--+- filespec---+---------------->< '- options-' '- "filespec"-'
Parameters
Table 74. Query Archive command: Related options
Option | Where to use | Page |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
description | Command line only. | Description |
detail | Command line only. | Detail |
dirsonly | Command line only. | Dirsonly |
filelist | Command line only. | Filelist |
filesonly | Command line only. | Filesonly |
fromdate | Command line only. | Fromdate |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
fromtime | Command line only. | Fromtime |
numberformat | Client user options file (dsm.opt) or command line. | Numberformat |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
todate | Command line only. | Todate |
totime | Command line only. | Totime |
Examples
Command: q archive "*"
Command: query archive "/devel/*" -subdir=yes
Command: q ar -date=5 -time=1 "*"
Command: q ar -detail "*"
Command: q ar "/home/proj/proj*"
The query backup command displays a list of backup versions of your files. File information includes the following:
If you use the detail option with the query archive command, the client displays the following additional information:
You can use the query backup command to display information about file system images backed up for a NAS file server.
Use the nasnodename option to identify the NAS file server to query. When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID. Place the nasnodename option in your client system options file (dsm.sys). The value in the client system options file is the default, but this value can be overridden on the command line. See Nasnodename for more information.
Use the class option to specify the class of the file space to query. To display a list of images belonging to a NAS node, use the -class=nas option. Using the default -class=client option will not change the current query backup behavior. See Class for more information.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query Backup--+----------+--+- filespec---+----------------->< '- options-' '- "filespec"-'
Parameters
Table 75. Query Backup command: Related options
Option | Where to use | Page |
class | Command line only. | Class |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
detail | Command line only. | Detail |
dirsonly | Command line only. | Dirsonly |
filelist | Command line only. | Filelist |
filesonly | Command line only. | Filesonly |
fromdate | Command line only. | Fromdate |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
fromtime | Command line only. | Fromtime |
inactive | Command line only. | Inactive |
nasnodename | Client system options file (dsm.sys) or command line. | Nasnodename |
numberformat | Client user options file (dsm.opt) or command line. | Numberformat |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
todate | Command line only. | Todate |
totime | Command line only. | Totime |
Examples
Command: query backup -inactive "*"
Command: q backup -detail "*"
Command: q b -date=1 -time=4 "/home/proj/proj*"
Command: q b -date=5 -time=1 -ina -su=yes /home/
Command: query backup -nasnodename=nas2 -class=nas
The query backupset command queries a backup set from a local file, tape device, or the Tivoli Storage Manager server. See Location for information on specifying locally-resident backup sets. This command displays the backup set name, generation date, retention, and description.
You can use this command to query backup sets on a tape device with AIX, Solaris, and HP-UX clients only.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query BACKUPSET--+---------+--+----------------+------------>< '-options-' +- backupsetname-+ '- filename------'
Parameters
Table 76. Query Backupset command: Related options
Option | Where to use | Page |
description | Command line only. | Description |
location | Command line only. | Location |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
Examples
Command: query backupset "mybackupsetname" -loc=server
Command: dsmc query backupset "/home/budget/backupsetfile.name" -loc=file
Command: dsmc query backupset /dev/rmt0 -loc=tape
The query filespace command displays a list of file spaces for a node that are stored on the Tivoli Storage Manager server. You can also specify a single file space name to query. A file space is a logical space on the server that contains files you backed up or archived. Tivoli Storage Manager assigns a separate file space on the server for each file system at your workstation from which you back up or archive files. The file space name is the same as the file system name.
Use the nasnodename option to identify the NAS file server to query. When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID. Place the nasnodename option in your client system options file (dsm.sys). The value in the client system options file is the default, but this value can be overridden on the command line. If the nasnodename option is not specified in the client system options file, it must be specified on the command line when processing NAS file systems. See Nasnodename for more information.
Use the class option to specify the class of the object to query. To display a list of file spaces belonging to a NAS node, use the -class=nas option. Using the default, -class=client, will not change the current query filespace behavior. See Class for more information.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query Filespace--+----------------+--+----------+----------->< '- filespacename-' '- options-'
Parameters
Table 77. Query Filespace command: Related options
Option | Where to use | Page |
class | Command line only. | Class |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
detail | Command line only. | Detail |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
nasnodename | Client system options file (dsm.sys) or command line. | Nasnodename |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
Examples
Command: query filespace
Command: query filespace -date=5 -time=4
Command: query filespace /home
Command: query filespace "*smith*"
Command: query filespace -nasnodename=nas2 -class=nas
Authorized User
Use the query group command to display information about a group backup and its members.
Notes:
+--------------------------------------------------------------------------------+ |Size Backup Date Mgmt Class A/I Type File | |---- ----------- ---------- --- ---- ---- | |433 B 10/09/2002 14:40:07 NOARCH A FULL VFS/GROUP1 | |433 B 10/10/2002 07:58:43 NOARCH A DIFF VFS/GROUP1 | |433 B 10/09/2002 14:39:58 NOARCH I FULL VFS/GROUP1 | |433 B 10/09/2002 14:39:53 NOARCH I DIFF VFS/GROUP1 | | | +--------------------------------------------------------------------------------+
If you query a group backup without the -inactive option, the query displays only the latest group backup, whether it is type FULL or type DIFF:
+--------------------------------------------------------------------------------+ |Size Backup Date Mgmt Class A/I Type File | |---- ----------- ---------- --- ---- ---- | |433 B 10/10/2002 07:58:43 NOARCH A DIFF VFS/GROUP1 | +--------------------------------------------------------------------------------+
Supported Clients
This option is valid for all UNIX clients.
Syntax
>>-query group- filespec-+----------+-------------------------->< '- options-'
Parameters
Table 78. Query Group command: Related options
Option | Where to use | Page |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
inactive | Command line only. | Inactive |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
showmembers | Command line only. | Showmembers |
Examples
Command:
query group /vfs/*
Command:
query group /vfs/group1 -inactive
Command:
query backup /vfs/group1 -showmembers
The query image command displays the following information about file system images backed up by a client:
Supported Clients
This command is valid for AIX, HP-UX, all Linux clients, and Solaris.
Syntax
>>-Query Image--+----------+--+- logicalvolumename-+----------->< '- options-' '- filespacename-----'
Parameters
Table 79. Query Image command: Related options
Option | Where to use | Page |
dateformat | Client user option file (dsm.opt) or command line. | Dateformat |
fromnode | Command line only. | Fromnode |
fromowner | Command line only | Fromowner |
inactive | Command line only. | Inactive |
numberformat | Client user option file (dsm.opt) or command line. | Numberformat |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
timeformat | Client user option file (dsm.opt) or command line. | Timeformat |
Omitting logicalvolumename and filespacename causes all images to display.
Examples
Command: q image
Command: query image -fromnode=avalon -fromowner=kutras
Command: q i /usr -inactive
The query inclexcl command displays a list of include-exclude statements in the order in which they are processed during backup and archive operations. The list displays the type of option, the scope of the option (archive, all, etc.), and the name of the source file.
You can test the validity of patterns you wish to use in your include-exclude list before you actually insert them in your options file. See the test pattern explanation below.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query INCLexcl- -+--------------+--------------------------->< '-test pattern-'
Parameters
If the test pattern has no errors, the compiled pattern result is the same as the test pattern.
Examples
Command: query inclexcl
Command: query inclexcl /.../?x?/*.log
The query mgmtclass command displays information about the management classes available in your active policy set.
Your administrator defines management classes that contain attributes controlling whether a file is eligible for backup or archive services. Management classes also determine how backups and archives are managed on the server.
Your active policy set contains a default management class; it can contain any number of additional management classes. You can assign specific management classes to files using include options that are located in the client user options file (dsm.opt). If you do not assign a management class to a file, Tivoli Storage Manager uses the default management class.
When you archive files, you can override the assigned management class by using the archmc option.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query Mgmtclass--+----------+------------------------------->< '- options-'
Parameters
Table 80. Query Mgmtclass command: Related options
Option | Where to use | Page |
detail | Command line only. | Detail |
fromnode | Command line only. | Fromnode |
Examples
Command: query mgmtclass
The query node command displays all the nodes for which an administrative user ID has authority to perform operations. The authorized administrative user ID should have at least client owner authority over the client workstation node they are using either from command line or from the web.
When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID.
Use the type option to specify the type of node to filter for. Valid values are nas, client, server, and any. The default is any. See Type for more information.
Supported Clients
This command is valid for AIX and Solaris clients only.
Syntax
>>-Query Node-+----------+------------------------------------->< '- options-'
Parameters
Table 81. Query Node command: Related options
Option | Where to use | Page |
type | Command line only. | Type |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
Examples
Command: query node -type=nas
Use the query options command to display all or part of your options and their current settings.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query Options--+----------+---- pattern--------------------->< '- options-'
Parameters
Table 82. Query Options command: Related options
Option | Where to use | Page |
scrolllines | Client user options file (dsm.opt) or command line. | Scrolllines |
scrollprompt | Client user options file (dsm.opt) or command line. | Scrollprompt |
Examples
Command: query options
Command: query options comm*
Command: query options replace
The query restore command displays a list of your restartable restore sessions in the server database. The list contains these fields: owner, replace, subdir, preservepath, source, and destination.
A restartable restore session is created when a wildcard restore command fails because of network outage, client failure, server outage, or a similar problem. When such a failure occurs, the file space is locked on the server and its files cannot be moved off the server's sequential volumes. To unlock the file space, either restart the restore and allow it to complete (restart restore command), or cancel the restore (cancel restore command). Use query restore to determine if you have any restartable restore sessions and which file spaces are affected.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query Restore-----------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: query restore
The query schedule command displays the events scheduled for your node. Your administrator can set up schedules to perform automatic backups and archives for you. To plan your work, use this command to determine when the next scheduled events occur.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query SChedule----------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: query schedule
The query session command displays information about your session, including the current node name, when the session was established, server information, and server connection information.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-Query SEssion-----------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: query session
A sample query session display follows:
Tivoli Storage Manager Command Line Backup Client Interface - Version 5, Release 1, Level 0.0 (C) Copyright IBM Corporation, 1990, 2002 All Rights Reserved. Node Name: EPSILON3 Session established with server FIJI_0918GA: AIX-RS/6000 Server Version 5, Release 1, Lev. 0.0 Server date/time: 03/04/2002 15:09:52 Last access: 03/04/2002 15:09:40 Server Connection Information Server Name.............: FIJI_0918GA Server Type.............: AIX-RS/6000 Server Version..........: Ver. 5, Rel. 1, Lev. 0.0 Last Access Date........: 09/04/1999 15:09:40 Delete Backup Files.....: Yes Delete Archive Files....: Yes Node Name...............: EPSILON3 User Name...............: thompson
Use the query systeminfo command to gather information on one or more of the following items and output this information to a file or the console:
Notes:
Supported Clients
This command is valid for all UNIX clients.
Syntax
.-----------. V | >>-Query SYSTEMInfo------ item---+--+----------+--------------->< '- options-'
Parameters
Table 83. Query Systeminfo command: Related options
Option | Where to use | Page |
console | Command line only. | Console |
filename | Command line only. | Filename |
Examples
Command: query systeminfo dsmoptfile errorlog -filename=tsminfo.txt
Authorized User
Use the query was command to display backups of the WebSphere Application Server (WAS) Network Deployment Manager (contains setup, application files, and configuration information) or the Application Server that match the node name and type of the WAS group backup that you specify.
Use the wastype option to specify whether to query the Network Deployment Manager (ND), Application Server (APP), or both (ANY), that are associated with the node name of the instance of WAS that you want to query. The default is ANY. You can also set the wastype option to LOCAL to query all the instances of the Application server and Network Deployment Manager on your local machine. See Wastype for more information.
Supported Clients
This command is valid for AIX, Solaris, and Linux86 clients.
Syntax
>>-Query WAs--+----------+-- --nodename------------------------>< '- options-'
Parameters
Table 84. Query WAS command: Related options
Option | Where to use | Page |
fromnode | Command line only. | Fromnode |
fromowner | Command line only | Fromowner |
inactive | Command line only. | Inactive |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
showmembers | Command line only. | Showmembers |
wastype | Command line only. | Wastype |
Examples
Command: query was -ina -wastype=any
Command: query was wasnode -showmembers
The restart restore command displays a list of your restartable restore sessions in the server database. You can only restart one restartable restore session at a time. Run the restart restore command again to restart additional restores.
The restarted restore uses the same options you used in the failed restore. The restarted restore continues from the point at which the restore previously failed.
To cancel restartable restore sessions, use the cancel restore command. Use the restart restore command when:
Options from the failed session supersede new or changed options for the restarted session.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-RESTArt Restore---------------------------------------------><
Parameters
There are no parameters for this command.
Examples
Command: restart restore
The restore command obtains copies of backup versions of your files from a Tivoli Storage Manager server. To restore files, specify the directories or selected files, or select the files from a list. Restore files to the directory from which you backed them up or to a different directory. Tivoli Storage Manager uses the preservepath option with the subtree value as the default for restoring files. For more information, see Preservepath.
See File system and ACL support for supported file systems and ACL support.
If you set the subdir option to yes when restoring a specific path and file, Tivoli Storage Manager recursively restores all subdirectories under that path, and any instances of the specified file that exist under any of those subdirectories.
When you restore an entire directory or directory tree, and you do not specify the inactive, latest, pick, todate, and fromdate options on the restore command, Tivoli Storage Manager tracks which objects are restored. If the restore process is interrupted for any reason, you can restart the restore at the point of interruption by entering the restart restore command. It is possible to create more than one restartable restore session. Restores are only restartable if the filespec is fully wildcarded. For example, for a restore which is restartable, enter:
dsmc rest /home/* -sub=yes
For a restore which is not restartable, enter:
dsmc rest /home/file?.c -sub=yes
Use the query restore command to display a list of your restartable restore sessions in the server database. Further backups of the file system cannot be performed unless the restartable restore completes using the restart restore command or is cancelled using the cancel restore command.
Supported Clients
This command is valid for all UNIX clients.
Syntax
.- FILE-. >>-REStore--+-------+--+----------+--+- sourcefilespec---+------> '- options-' '- "sourcefilespec"-' >--+----------------------+------------------------------------>< '- destinationfilespec-'
Parameters
Table 85. Restore command: Related options
Option | Where to use | Page |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
dirsonly | Command line only. | Dirsonly |
filelist | Command line only. | Filelist |
filesonly | Command line only. | Filesonly |
followsymbolic | Client user options file (dsm.opt) or command line. | Followsymbolic |
fromdate | Command line only. | Fromdate |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
fromtime | Command line only. | Fromtime |
ifnewer | Command line only. | Ifnewer |
inactive | Command line only. | Inactive |
latest | Command line only. | Latest |
numberformat | Client user options file (dsm.opt) or command line. | Numberformat |
pick | Command line only. | Pick |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
preservepath | Command line only. | Preservepath |
replace | Client user options file (dsm.opt) or command line. | Replace |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
tapeprompt | Client user options file (dsm.opt) or command line. | Tapeprompt |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
todate | Command line only. | Todate |
totime | Command line only. | Totime |
Examples
Command: restore /home/devel/projecta/budget
Command: restore file budget
Command: restore "/home/devel/projecta/*.c"
Command: restore "/user/project/*" -pick -inactive
Command: restore "/home/devel/projecta/*.c" /home/newdevel/projectn/
Command: restore -pitd=8/17/2002 -pitt=13:00:00 /home/mydir/
Command: res /home/myid/*
Command: res -filelist=/home/avi/restorelist.txt /home/NewRestoreLocation/
The restore backupset command restores a backup set from the server, a local file, or a local tape device.
Use the location option with the restore backupset command to specify where Tivoli Storage Manager searches for a backup set during the restore operation. See Location for more information.
If you are restoring a file space from a backup set to a system that did not perform the original backup, you may need to:
dsmc restore backupset backupsetname {/fsname}/* /destfs/ -subdir=yes
You can restore a group from a backup set with the following considerations:
restore backupset mybackupset /virtfs/* /home/devel/projectb/ -loc=server -subdir=yes
The entire group, or groups in the virtual file space will be restored. You cannot restore a partial group by specifying a qualified source file space.
restore backupset mybackupset {/virtfs}/* /home/devel/projectb/ -loc=file -subdir=yes
Considerations:
You can restore backup sets in a storage area network (SAN) in the following ways:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-REStore BACKUPSET--+---------+--+- backupsetname-+-----------> '-options-' '- filename------' >--+- sourcefilespec---+--+----------------------+------------->< '- "sourcefilespec"-' '- destinationfilespec-'
Parameters
Table 86. Restore Backupset command: Related options
Option | Where to use | Page |
dirsonly | Command line only. | Dirsonly |
filesonly | Command line only. | Filesonly |
ifnewer | Command line only. | Ifnewer |
location | Command line only. | Location |
preservepath | Command line only. | Preservepath |
quiet | Client user options file (dsm.opt) or command line. | Quiet |
replace | Client user options file (dsm.opt) or command line. | Replace |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
Examples
Command: dsmc restore backupset mybackupsetname -loc=server
Command: dsmc restore backupset "/home/budget/backupsetfile.name" -loc=file
Command: dsmc restore backupset "/dev/rmt0" -loc=tape
Command: dsmc restore backupset /dev/rmt0 "/home/jones/budget.dev" -loc=tape
Command: dsmc restore backupset /dev/rmt0 "/home/budget/*.txt" -loc=tape
Command: dsmc restore backupset bset01.001 -loc=server
Command:restore backupset mybackupset /virtfs/ /home/devel/projectb/ -loc=server -subdir=yes
Command:restore backupset mybackupset {/virtfs}/ /home/devel/projectb/ -loc=server -subdir=yes
Command: dsmc restore backupset "/home/jones/bset01.file" -loc=file
Authorized User
Use the restore group command to restore specific members or all members of a group backup.
Notes:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-restore group-+----------+--- sourcefilespec---+----------------------+->< '- options-' '- destinationfilespec-'
Parameters
Table 87. Restore Group command: Related options
Option | Where to use | Page |
followsymbolic | Client user options file (dsm.opt) or command line. | Followsymbolic |
fromdate | Command line only. | Fromdate |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
fromtime | Command line only. | Fromtime |
ifnewer | Command line only. | Ifnewer |
inactive | Command line only. | Inactive |
latest | Command line only. | Latest |
pick | Command line only. | Pick |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
replace | Client user options file (dsm.opt) or command line. | Replace |
showmembers | Command line only. | Showmembers |
tapeprompt | Client user options file (dsm.opt) or command line. | Tapeprompt |
todate | Command line only. | Todate |
totime | Command line only. | Totime |
Examples
Command:
restore group /virtfs/group1
Command:
restore group /virtfs/* -pick -showmembers
Command:
restore group /virtfs/* -pick
The restore image command restores a file system or raw volume image that was backed up using the backup image command. This command can restore an active base image, or a point-in-time base image, with associated incremental updates.
You can use 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, Tivoli Storage Manager issues a warning message on the console and in the error log. See Verifyimage for more information.
If bad sectors are present on the target volume, you can use the imagetofile option with the restore image command to specify that you want to restore the source image to a file. Later, you can use a 'dd' utility (available on UNIX) or its equivalent to copy data from this file to a logical volume. See Imagetofile for more information.
Considerations:
Supported Clients
This command is valid for AIX, HP-UX, all Linux clients, and Solaris.
Syntax
>>-REStore Image--+----------+--+- sourcefilespec---+-----------> '- options-' '- "sourcefilespec"-' >--+----------------------+------------------------------------>< '- destinationfilespec-'
Parameters
Table 88. Restore Image command: Related options
Option | Where to use | Page |
dateformat | Client user option file (dsm.opt) or command line. | Dateformat |
deletefiles | Command line only. | Deletefiles |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
imagetofile | Command line only. | Imagetofile |
inactive | Command line only. | Inactive |
incremental | Command line only. | Incremental |
noprompt | Command line only. | Noprompt |
pick | Command line only. | Pick |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
timeformat | Client user option file (dsm.opt) or command line. | Timeformat |
verifyimage | Command line only. | Verifyimage |
The restore image command does not define or mount the destination file space. The destination volume must exist, must be large enough to hold the source, and if it contains a file system, must be mounted. If an image backup contains a file system, and you restore them to a different location, be aware of the following points:
Examples
Command: dsmc rest image /home/test
Command: dsmc restore image /home/proj -incremental -deletefiles
Command: dsmc restore image /usr -verifyimage
Command: dsmc restore image /usr /home/usr.img -imagetofile
The restore nas command restores the image of a file system belonging to a Network Attached Storage (NAS) file server. The NAS file server performs the outboard data movement. A server process performs the restore.
If you used the toc option with the backup nas command or the include.fs.nas option to save Table of Contents (TOC) information for each file system backup, you can use the query toc server command to determine the contents of a file system backup in conjunction with the restore node server command to restore individual files or directory trees. You can also use the Web client to examine the entire file system tree and select files and directories to restore. If you do not save TOC information, you can still restore individual files or directory trees using the restore node server command, provided that you know the fully qualified name of each file or directory and the image in which that object was backed up.
Use the nasnodename option to specify the node name for the NAS file server. When using an interactive command line session with a non-administrative ID, Tivoli Storage Manager prompts for an administrator ID. The NAS node name identifies the NAS file server to the Tivoli Storage Manager server. You must register the NAS node name at the server. Place the nasnodename option in your client system options file (dsm.sys). The value in the client system options file is the default, but this value can be overridden on the command line. See Nasnodename for more information.
You can use the pick option to display a list of NAS images owned by the NAS node you specify. From this list you can select one or more images to restore. If you select multiple images to restore using the pick option, do not use the monitor option or you will serialize the restores. To start multiple restore processes simultaneously when restoring multiple images, do not specify monitor=yes.
Use the monitor option to specify whether you want to monitor a NAS file system image restore and display processing information on your screen. See Monitor.
Use the monitor process command to display a list of current restore processes for all NAS nodes for which your administrative user ID has authority. The authorized administrative user ID should have at least client owner authority over both the NAS node and the client workstation node they are using either from command line or from the web.
Use the cancel process command to stop NAS restore processing. For more information, see Cancel Process.
Regardless of client platform, NAS file system specifications use the forward slash (/) separator, as in this example: /vol/vol0.
Supported Clients
This command is valid for AIX and Solaris clients only.
Syntax
>>-REStore NAS--+----------+---- sourcefilespec-----------------> '- options-' >--+----------------------+------------------------------------>< '- destinationfilespec-'
Parameters
Table 89. Restore NAS command: Related options
Option | Where to use | Page |
dateformat | Client user option file (dsm.opt) or command line. | Dateformat |
inactive | Command line only. | Inactive |
mode | Command line only. | Mode |
monitor | Command line only. | Monitor |
nasnodename | Client system options file (dsm.sys) or command line. | Nasnodename |
numberformat | Client user option file (dsm.opt) or command line. | Numberformat |
pick | Command line only. | Pick |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
timeformat | Client user option file (dsm.opt) or command line. | Timeformat |
Examples
Command: restore nas -nasnodename=nas1 /vol/vol1 /vol/vol2
Command: restore nas -nasnodename=nas2 -pick -inactive
Root User
The restore was command specifies whether to restore the WebSphere Application Server (WAS) Network Deployment Manager (contains setup, application files, and configuration information) or the Application Server from the Tivoli Storage Manager server. The Application Server must be stopped for the restore to proceed.
You can also restore the Network Deployment Manager, the Application Server, and their instances simultaneously in separate sessions.
Use the wastype option to specify whether to restore the Network Deployment Manager (ND) or Application Server (APP) associated with the node name of the instance of WAS that you want to restore. The default is ND. See Wastype for more information.
You can use the following procedure if your entire WebSphere installation is corrupted and it must be reinstalled, or you are installing WAS on a new machine:
Notes:
Use the following procedure to restore to the same existing instance of a server. This procedure assumes that there is a preexisting WAS installation that is running and has a backup stored on the Tivoli Storage Manager server:
On an ND, the server will synchronize the restored data with the remote nodes since they are already connected.
Notes:
Supported Clients
This command is valid for AIX, Solaris, and Linux86 clients.
Syntax
>>-REStore WAS--+----------+-- --nodename---------------------->< '- options-'
Parameters
Table 90. Restore WAS command: Related options
Option | Where to use | Page |
fromdate | Command line only. | Fromdate |
fromnode | Command line only. | Fromnode |
fromowner | Command line only. | Fromowner |
fromtime | Command line only. | Fromtime |
ifnewer | Command line only. | Ifnewer |
inactive | Command line only. | Inactive |
latest | Command line only. | Latest |
pick | Command line only. | Pick |
pitdate | Command line only. | Pitdate |
pittime | Command line only. | Pittime |
preservepath | Command line only. | Preservepath |
replace | Client user options file (dsm.opt) or command line. | Replace |
showmembers | Command line only. | Showmembers |
tapeprompt | Client user options file (dsm.opt) or command line. | Tapeprompt |
todate | Command line only. | Todate |
totime | Command line only. | Totime |
wastype | Command line only. | Wastype |
Examples
Command: restore was wasnode -showmembers -pick
Command: restore was wasnode -wastype=nd
The retrieve command obtains copies of archived files from the Tivoli Storage Manager server. You can retrieve specific files or entire directories.
Use the description option to specify the descriptions assigned to the files you want to retrieve.
Use the pick option to display a list of your archives from which you can select an archive to retrieve.
Retrieve the files to the same directory from which they were archived, or to a different directory. Tivoli Storage Manager uses the preservepath option with the subtree value as the default for restoring files. For more information, see Client options reference.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-RETrieve--+----------+--+- sourcefilespec---+----------------> '- options-' '- "sourcefilespec"-' >--+----------------------+------------------------------------>< '- destinationfilespec-'
Parameters
Table 91. Retrieve command: Related options
Option | Where to use | Page |
dateformat | Client user options file (dsm.opt) or command line. | Dateformat |
description | Command line only. | Description |
dirsonly | Command line only. | Dirsonly |
filelist | Command line only. | Filelist |
filesonly | Command line only | Filesonly |
followsymbolic | Client user options file (dsm.opt) or command line. | Followsymbolic |
fromdate | Command line only | Fromdate |
fromnode | Command line only. | Fromnode |
fromowner | Command line only | Fromowner |
fromtime | Command line only | Fromtime |
ifnewer | Command line only | Ifnewer |
pick | Command line only. | Pick |
preservepath | Command line only. | Preservepath |
replace | Client user options file (dsm.opt) or command line. | Replace |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
tapeprompt | Client user options file (dsm.opt) or command line | Tapeprompt |
timeformat | Client user options file (dsm.opt) or command line. | Timeformat |
todate | Command line only. | Todate |
totime | Command line only. | Totime |
Examples
Command: retrieve /home/devel/projecta/budget
Command: retrieve "/home/devel/projecta/*.c"
Command: retrieve /home/
Command: retrieve "/home/devel/projecta/*.c" /home/newdevel/projectn/
Command: ret "/user/project/*" -pick
Command: retrieve "/proj/*" -desc="2002 survey results"
Command:
mkfifo fifo dd if=fifo of=/dev/rmt1& dsmc retrieve -replace=yes -description="mybudget" /home/devel/budget fifo
Authorized User
The schedule command starts the client scheduler on your workstation. The client scheduler must be running before scheduled work can start.
Notes:
If the schedmode option is set to polling, the client scheduler contacts the server for scheduled events at the hourly interval you specified with the queryschedperiod option in your client user options file (dsm.opt). If your administrator sets the queryschedperiod option for all nodes, that setting overrides the client setting.
If you are using TCP/IP communications, the server can prompt your workstation when it is time to run a scheduled event. To do so, set the schedmode option to prompted in the client user options file (dsm.opt) or on the schedule command.
You can use the sessioninitiation option with the schedule command to control whether the server or client initiates sessions through a firewall. See Sessioninitiation for more information. See Configuring Tivoli Storage Manager client/server communication across a firewall for more information about Tivoli Storage Manager firewall support.
After you start the client scheduler, it continues to run and to start scheduled events until you press Ctrl+C, stop the scheduler process with the UNIX kill command, start the workstation again, or turn off the workstation to end it.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-SCHedule--+----------+-------------------------------------->< '- options-'
Parameters
Table 92. Schedule command: Related options
Option | Where to use | Page |
maxcmdretries | Client system options file (dsm.sys) or command line. | Maxcmdretries |
password | Client user options file (dsm.opt) or command line. | Password |
queryschedperiod | Client system options file (dsm.sys) or command line. | Queryschedperiod |
retryperiod | Client system options file (dsm.sys) or command line. | Retryperiod |
schedlogname | Client system options file (dsm.sys) or command line. | Schedlogname |
schedmode | Client system options file (dsm.sys) or command line. | Schedmode |
sessioninitiation | Client system options file (dsm.sys) or command line. | Sessioninitiation |
tcpclientport | Client system options file (dsm.sys) or command line. | Tcpclientport |
Examples
Command: tsm::once:/usr/lpp/adsm/bin/dsmc sched > /dev/null 2>&1 #TSM Scheduler
Command: nohup dsmc sched 2> /dev/null &
When you run the schedule command, all messages regarding scheduled work are sent to the dsmsched.log file or to the file you specify with the schedlogname option in your client system options file (dsm.sys). If you do not specify a directory path with the file name in the schedlogname option, the dsmsched.log file will reside in the default installation directory.
The selective command backs up files that you specify. If these files become damaged or lost, you can replace them with backup versions from the server. When you run a selective backup, all the files are candidates for back up unless you exclude them from backup, or they do not meet management class requirements for serialization. See File system and ACL support for supported file systems and ACL support.
During a selective backup, copies of the files are sent to the server even if they did not change since the last backup. This might result in more than one copy of the same file on the server. If this occurs, you might not have as many different down-level versions of the file on the server as you intended. Your version limit might consist of identical files. To avoid this, use the incremental command to back up only new and changed files.
You can selectively back up single files or directories. You can also use wildcard characters to back up groups of related files.
If you set the subdir option to yes when backing up a specific path and file, Tivoli Storage Manager recursively backs up all subdirectories under that path, and any instances of the specified file that exist under any of those subdirectories.
During a selective backup, a directory path may be backed up, even if the specific file that was targeted for backup is not found. For example:
selective "/dir1/dir2/bogus.txt"
still backs up dir1 and dir2 even if the file bogus.txt does not exist.
If the selective command is retried because of a communication failure or session loss, the transfer statistics will display the number of bytes Tivoli Storage Manager attempts to transfer during all command attempts. Therefore, the statistics for bytes transferred may not match the file statistics, such as those for file size.
|You can use the removeoperandlimit option to specify that Tivoli |Storage Manager removes the 20-operand limit for UNIX-family platforms. |If you specify the removeoperandlimit option with the |selective command, the 20-operand limit is not enforced and is |restricted only by available resources or other operating system |limits. See Removeoperandlimit
Use the snapshotroot option with the selective command in conjunction with a third-party application that provides a snapshot of a logical volume, to associate the data on the local snapshot with the real file space data that is stored on the Tivoli Storage Manager server. The snapshotroot option does not provide any facilities to take a volume snapshot, only to manage data created by a volume snapshot. See Snapshotroot for more information.
Supported Clients
This command is valid for all UNIX clients.
Syntax
.-----------------. V | >>-Selective--+----------+----+- filespec---+-+---------------->< '- options-' '- "filespec"-'
Parameters
Table 93. Selective command: Related options
Option | Where to use | Page |
changingretries | Client system options file (dsm.sys) or command line. | Changingretries |
compressalways | Client user options file (dsm.opt) or command line. | Compressalways |
compression | Client system options file (dsm.sys) within a server stanza or command line. | Compression |
dirsonly | Command line only. | Dirsonly |
filelist | Command line only. | Filelist |
filesonly | Command line only. | Filesonly |
preservelastaccessdate | Client user options file (dsm.opt) or command line. | Preservelastaccessdate |
removeoperandlimit | Command line only. | Removeoperandlimit |
snapshotroot | Command line only. | Snapshotroot |
subdir | Client user options file (dsm.opt) or command line. | Subdir |
tapeprompt | Client user options file (dsm.opt) or command line. | Tapeprompt |
Examples
Command: selective /home/devel/proja
Command: selective "/home/devel/proj*"
Command: selective "/home/devel/proj*" /user/home/budget
Command: selective /home/ -subdir=yes
Command: dsmc sel "/usr/dir1/sub1/*" -subdir=yes -snapshotroot=/snapshot/day1
The set access command gives users at other nodes access to your backup versions, archived copies, or backup images. You can give another user access to a specific file or image, multiple files or images, or all files in a directory. When you give access to another user, that user can restore or retrieve your objects. Specify in the command whether you are giving access to archives or backups.
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-SET Access--+- Archive-+--+- filespec-+-- node--+-------+--->< '- Backup--' '-image-fs--' '- user-'
Parameters
If you give access to a branch of the current working directory, you only need to specify the branch. If you give access to objects that are not in a branch of the current working directory, you must specify the complete path. The file spec to which you gave access must have at least one backup version or archive copy object (file or directory) on the server.
To specify all files in a named directory, enter /home/mine/proj1/* on the command line.
To give access to all objects below a certain level, use an asterisk, directory delimiter, and an asterisk at the end of your file spec. For example, to give access to all objects below home/test, use file spec home/test/*/*.
Attention: Use of the form /*/* alone will not give access to objects in the named directory; only those in directories below the named directory will be accessible.
The rules are essentially the same when considering the root directory. Enter /* on one set access command and /*/* on another if you want another user to have access to all files and directories in and below the root directory. The first /* gives access to all directories and all files in the root directory. The second /* allows access to all directories and files below the root directory.
For example:
To allow access to all files in the /home/sub1/sub2 directory, enter:
set access backup /home/sub1/sub2/* * *
To allow access to only those files in the /home directory, enter:
set access backup /home/* * *
To allow access to all files in all directories in and below the /home directory, enter:
set access backup /home/* * * set access backup /home/*/* * *
Examples
Command: set access backup /home/user/budget node_2
Command: set access archive "/home/devel/proja/*.c" node_3
Command: set ac archive /home/devel/proja/ node_3
Command: set ac b "{project}/*" "*bldgb"
Command: set acc backup "home/devel/proja/*/*" node_5 serena
Authorized User
The set password command changes the Tivoli Storage Manager password for your workstation. If you omit the old and new passwords when you enter the set password command, you are prompted once for the old password and twice for the new password.
A password is not case-sensitive, and it can be as many as 63 characters. Valid characters are:
Supported Clients
This command is valid for all UNIX clients.
Syntax
>>-SET Password--+--------------+------------------------------>< '- oldpw newpw-'
Parameters
Examples
The following is an example of using the set password command.
Command: set password osecret nsecret
|Root User
|If WAS security is enabled, user name and password validation for Data |Protection for WebSphere Application Server is required. If you do not |set the WAS password for the security, the backup will failover to an offline |backup. It is recommended to set the was security password to perform |consistent backups. Use the set waspassword command to set |the user name and password for each installation of WAS on your |machine. You only need to perform this task once, unless you change |your WAS user name or password. You can only perform this task on the |Tivoli Storage Manager command line.
|To determine if WAS security is enabled, enter the following command:
| dsmc query was -wast=local
|Tivoli Storage Manager displays the WAS security status under the |Sec heading.
|Supported Clients
|This command is valid for AIX, Solaris, and Linux86 clients.
|Syntax
|>>-SET WASPassword--+------------------------------+----------->< | '- WASNode-- WASType-- WASUser-' | |
|Parameters |
|Examples |
|Command: dsmc set waspassword -wasnode=wasnode |-wastype=app -wasuser=ed
|Tivoli Storage Manager prompts for the WebSphere password, as |follows:
|+--------------------------------------------------------------------------------+ ||Please enter the WebSphere password: | |+--------------------------------------------------------------------------------+
|If you do not specify the wasnode or wasuser |options, Tivoli Storage Manager prompts for this information as follows:
|+--------------------------------------------------------------------------------+ ||Please enter WebSphere node name: | || | ||Please enter the WebSphere user name: | || | |+--------------------------------------------------------------------------------+|