12.07.2015 Views

IBM Tivoli Storage Manager for UNIX and Linux: Backup-Archive ...

IBM Tivoli Storage Manager for UNIX and Linux: Backup-Archive ...

IBM Tivoli Storage Manager for UNIX and Linux: Backup-Archive ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

file. This value remains in effect <strong>for</strong> the entire interactive session unless overriddenby a different value on a given interactive comm<strong>and</strong>. For example, if you set thesubdir option to yes in your client user options file (dsm.opt), <strong>and</strong> you specify-subdir=no on the initial comm<strong>and</strong> line, the -subdir=no setting remains in effect <strong>for</strong>the entire interactive session unless overridden by the -subdir=yes value on a giveninteractive comm<strong>and</strong>. However, the subdir=yes value specified within theinteractive session only affects the comm<strong>and</strong> on which it is entered. When thatcomm<strong>and</strong> completes, the value reverts back to -subdir=no, the value at thebeginning of the interactive session.ParametersComm<strong>and</strong>s can have required parameters, optional parameters, or no parametersat all. Required parameters provide in<strong>for</strong>mation to per<strong>for</strong>m a task. The mostcommonly required parameter is a file specification. For example, if you want toarchive a file named budget.fin from the /project directory, you would enter:dsmc archive /project/budget.finSome comm<strong>and</strong>s have optional parameters. If you do not enter a value <strong>for</strong> anoptional parameter, <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> uses the default value. For example,the restore comm<strong>and</strong> includes a required parameter, sourcefilespec, that specifies thepath <strong>and</strong> file name in storage that you want to restore. The optional parameter,destinationfilespec, specifies the path <strong>and</strong> file name where you want to place therestored files. If you do not specify the destinationfilespec, by default <strong>Tivoli</strong> <strong>Storage</strong><strong>Manager</strong> restores the files to the original source path. If you want to restore thefiles to a different directory, enter a value <strong>for</strong> destinationfilespec. For example, torestore the /project/budget.fin file to /newproj/newbudg.fin, enter:dsmc restore /project/budget.fin /newproj/newbudg.finEnter parameters in the order indicated in the comm<strong>and</strong> syntax diagram.File specification syntaxUse the following syntax rules when entering file specification parameters, such asfilespec, sourcefilespec, <strong>and</strong> destinationfilespec:v Do not use national language characters within the <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong>comm<strong>and</strong> line client interactive mode. If a file specification contains nationalcharacters, process the comm<strong>and</strong> in batch mode, preceding it with the executableprogram name dsmc.v If a file specification does not begin with a file space name (an opening directorydelimiter), the file specification is assumed to be a subdirectory of the currentworking directory <strong>and</strong> <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> builds the fully qualified filespecification. For example, if the current working directory is /home/me, thenthe destinationfilespec would be /home/me/mydir in the following comm<strong>and</strong>:dsmc restore "/fs/dir1/*" mydir/v The only comm<strong>and</strong> that accepts a simple file space name is the incrementalcomm<strong>and</strong>. The following example is valid:dsmc i /fsThe following example is not valid:dsmc sel /fsv When entering the sourcefilespec, if the directory name ends with /, then /* isimplied.When entering a destinationfilespec, if the name ends with /, then it is considereda directory, otherwise it is considered a file.398 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> <strong>for</strong> <strong>UNIX</strong> <strong>and</strong> <strong>Linux</strong>: <strong>Backup</strong>-<strong>Archive</strong> Clients Installation <strong>and</strong> User’s Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!