Anda di halaman 1dari 10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

We want to use cookies to collect data on how people use our site. Click here to accept, and dismiss this notice. For more information, and to change your preferences later, see our cookie policy. If you prefer not to accept them you may disable them (this sets a cookie).

Oxford University Computing Services


Monday 8. Oct 2012

Using the TSM Client Command Line Interface for Backup & Restore
1. Introduction
This section will first provide an introduction to the TSM Command Line Interface (CLI) and then describe how to manually back up and restore files on the local machine. The screen shots and descriptions that follow may refer to older TSM clients, but with the exception of the file specifications the syntax is generic to all platforms.

2. Starting the TSM Command Line client


2.1. Windows
Run [ a k p A c i e C i n C m a d L n ]from [ t r ]| [ l P o r m ]| [ i o i S o a e Bcu-rhv let omn ie Sat Al rgas Tvl trg M n g r . The TSM command line interface will open in a DOS window on the Windows desktop. This window will be small but aae] you can toggle between that and a full screen by typing A t + E t r You should see a prompt of the form: l ne.

2.2. Mac
Open [ e m n l from [ p l c t o s | [ t l t e ]and type s d d m . You should see a prompt of the Tria] Apiain] Uiiis uo sc form:
IMTvl SoaeMngr B ioi trg aae CmadLn Bcu/rhv Cin Itrae omn ie akpAcie let nefc Cin Vrin5 Rlae5 Lvl20 let eso , ees , ee . Cin dt/ie 1-620 1:63 let aetm: 80-09 13:7 ()Cprgtb IMCroainadohrs 19,20.AlRgt Rsre. c oyih y B oprto n te() 90 08 l ihs eevd
www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1 1/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

Nd Nm:AC13-ATPOC oe ae BD24LPO-US Ssinetbihdwt sre O_F_3 AXR/00 eso salse ih evr XHSB: I-S60 Sre Vrin5 Rlae5 Lvl11 evr eso , ees , ee . Sre dt/ie 1-620 1:63 Ls acs:1-620 0:13 evr aetm: 80-09 13:7 at ces 80-09 25:0 tm s>

2.3. Unix/Linux
Run d m as root from the shell prompt (e.g., in Ubuntu, run s d d m ). You should see a prompt of the form: sc uo sc
IMTvl SoaeMngr B ioi trg aae CmadLn Bcu/rhv Cin Itrae omn ie akpAcie let nefc Cin Vrin5 Rlae5 Lvl20 let eso , ees , ee . Cin dt/ie 1-620 1:63 let aetm: 80-09 13:7 ()Cprgtb IMCroainadohrs 19,20.AlRgt Rsre. c oyih y B oprto n te() 90 08 l ihs eevd Nd Nm:AC13-ATPOC oe ae BD24LPO-US Ssinetbihdwt sre O_F_3 AXR/00 eso salse ih evr XHSB: I-S60 Sre Vrin5 Rlae5 Lvl11 evr eso , ees , ee . Sre dt/ie 1-620 1:63 Ls acs:1-620 0:13 evr aetm: 80-09 13:7 at ces 80-09 25:0 tm s>

2.4. Netware
Type l a d m at the console. od sc

3. Accessing Help
Online help for TSM commands, options and error messages is available by typing h l at the t m prompt. The result will be ep s> similar to below:
Tefloighl tpc aeaalbe h olwn ep ois r vial. Etrtenme o tedsrdhl tpco ''t qi, ne h ubr f h eie ep oi r q o ut ''t srl dw,''t srl u. d o col on u o col p 0-Smayo Cags umr f hne 1-UigCmad sn omns 2-Slc fo tecmad lse blw eet rm h omns itd eo: 3- ACIE RHV 4- BCU D2D AKP BUB 5- BCU GOP AKP RU 6- BCU IAE AKP MG 7- BCU NS AKP A 8- BCU WS AKP A 9- CNE POES ACL RCS 1 - CNE RSOE 0 ACL ETR 1 - DLT ACS 1 EEE CES 1 - DLT ACIE 2 EEE RHV 1 - DLT BCU 3 EEE AKP 1 - DLT FLSAE 4 EEE IEPC 1 - DLT GOP 5 EEE RU 1 - EPR 6 XIE 1 - HL 7 EP 1 - ICEETL 8 NRMNA

Note that commands and options may be abbreviated to a short form as indicated by capitalisation of words in the syntax entry for a command. Thus, for example, q e y f l s a ecan be abbreviated to q f . Options and commands can also be included on ur iepc i the original command line so, using the above example, on a Netware machine you can run l a d m q f to just run a query of od sc i the current partitions backed up. Obviously, more complex queries and commands can be similarly run in the same manner.

www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1

2/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

4. Querying the server


On starting the TSM CLI, no information about your current configuration settings or filestore is displayed. By default, the TSM CLI will output the results of a query in one, uninterrupted stream, with the result that much of the output scrolls off-screen. This is particularly inconvenient when querying the backup for a list of files. To manage this and ensure query results are returned one screen at a time edit the d m o tfile, add the following two lines and then restart the CLI: s.p
SrlPop colrmt Srllns colie Ys e 3 0 *weeti nme eutst yu wno sz hr hs ubr qae o or idw ie

The following query commands illustrate typical command syntax and output.

4.1. Querying your scheduled backup slot


To query your scheduled backup slot enter q s h d(which is short for q e y s h d l ). The output should look similar to ce ur ceue that below:
tm qshd s> ce Shdl Nm:WEL_US ceue ae EKYOC Dsrpin OC wel iceetlbcu ecito: US eky nrmna akp Shdl Sye Casc ceue tl: lsi Ato:Iceetl cin nrmna Otos pin: Ojcs bet: Pirt:5 roiy Nx Eeuin 19Husad3 Mnts et xcto: 4 or n 5 iue Drto:1 Mnts uain 5 iue Pro:1We eid ek Dyo We:Wdedy a f ek ensa Epr:Nvr xie ee

4.2. Querying what files are included / excluded for backup


At the t m prompt enter q i c e c to list output similar to the following: s> nlxl
tm qicec s> nlxl **FL ICUEECUE** * IE NLD/XLD * Md Fnto Pten(ac fo tpdw) Suc Fl oe ucin atr mth rm o on ore ie -- -------------------- ---------- ---- --------------- -------Ec Flsae/a/u xl iepc vrrn /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Flsae/m xl iepc tp /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Drcoy/./oea..cce xl ietr ...pr/./ah4 /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Drcoy/./mzla..Cce xl ietr ...oil/./ah /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Drcoy/./ntcp/./ah xl ietr ...esae..cce /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Drcoy/a/m xl ietr vrtp /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Al xl l /./sshdlg ..dmce.o /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Al xl l /./oe ..cr /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec Ec Al xl l /./.u ..aot /p/ioitmcin/abnic.xl ottvl/s/letb/i/nlec N DSicueecuesaeet dfnd o F nld/xld ttmns eie.

Note that the include / exclude directives are listed at the partition level first, then the directory / folder level and finally at the file level. The order they are displayed above is the order in which these directives are applied by TSM. You will note that the order of the directives at any one level is the opposite of the order in which they appear in the options file. That is, TSM reads the directives listed in options file from the bottom up.

4.3. Querying what partitions have been backed up


www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1 3/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

At the t m prompt enter q f to list which partitions have been backed up: s> i
* Wnos* * idw * # -1 Ls Ic Dt at nr ae ------------0-520 1:65 10-02 94:9 Tp ye --NF TS Fl SaeNm ie pc ae -------------\tnalsoc\$ \etce.usc

* Mc* * a * tm qf s> i # Ls Ic Dt at nr ae -------------1 0-520 0:31 20-02 21:3 2 2-720 1:60 50-01 22:9 * Ui/iu * * nxLnx * tm qf s> i # Ls Ic Dt at nr ae -------------1 0-520 0:31 20-02 21:3 2 2-720 1:60 50-01 22:9 3 0-520 0:32 20-02 21:6 4 1-120 1:63 60-02 12:7 5 0-520 0:35 20-02 21:4 6 1-220 0:24 20-02 25:1 * Ntae* * ewr * # -1 2 3 4 Ls Ic Dt at nr ae ------------0-520 0:34 20-02 02:6 0-520 0:24 20-02 02:2 0-520 0:53 20-02 02:3 0-520 0:51 20-02 02:1 Tp ye --NWLN T:OG NS D NWLN T:OG NWLN T:OG Fl SaeNm ie pc ae -------------NM1SS SS\Y: NM1NS SS\D: NM1UR SS\S: NM1AP: SS\PS

Tp ye --HS F HS F

Fl SaeNm ie pc ae -------------/ /oue/ik2 VlmsDs

Tp ye --US F US F US F US F US F US F

Fl SaeNm ie pc ae -------------/ /xothm epr/oe /oe hm /cac srth /s/oa urlcl /a vr

4.4. Querying what files have been backed up


The syntax for querying what files you have backed up involves giving a file specification which is necessarily OS specific. Also, if an incorrect file specification is given it may appear that you have no backups. Consequently, several worked examples are displayed below for Windows, Mac, Unix/Linux and Netware environments. If you give just a path to a directory / folder you will only get the folder returned as the output:
* Wnos* * idw * tm qb c\onod s> a :Dwlas Sz ie Bcu Dt akp ae -----------0 B 0-420 1:75 30-02 95:4 * Mc* * a * tm qb /sr s> a Ues Sz ie Bcu Dt akp ae -----------7 B 2-420 0:20 2 40-02 25:9 * Ui/iu * * nxLnx * tm qb /oein/rjcs s> a hm/aspoet Sz ie Bcu Dt akp ae
www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1

Mm Cas gt ls --------SADR TNAD

AIFl / ie ---- -A \tnalsoc\$Dwlas \etce.usc\onod

Mm Cas gt ls --------SADR TNAD

AIFl / ie ---- -A /sr Ues

Mm Cas gt ls

AIFl / ie
4/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

-----------52 B 2-420 0:20 1 40-02 25:9 * Ntae* * ewr * tm qb UR/as s> a S:in Sz ie Bcu Dt akp ae -----------0 B 0-520 0:53 20-02 02:2

--------SADR TNAD

---- -A /oein/rjcs hm/aspoet

Mm Cas gt ls --------SADR TNAD

AIFl / ie ---- -A UR/as S:in

Note that the Windows client lists the directory in UNC format. This format can also be used for the file specification in the query. If you just add a trailing * (star) as a wildcard in the above query, TSM will only return those files and directories backed up immediately below the directory path given in the query
tmqb /oein/rjcs* s> a hm/aspoet/ Sz ie Bcu Dt akp ae -----------52 1-920 1:70 1 20-01 95:9 104 0-220 0:65 ,2 81-01 24:3 52 1-920 1:70 1 20-01 95:9 52 2-420 0:25 1 40-02 02:6

Mm CasAIFl gt ls / ie ----- -------- - -SADR TNAD A /oein/rjcshs16 hm/aspoet/f00 SADR TNAD A /oein/rjcshm1ef hm/aspoet/s4pr SADR TNAD A /oein/rjcshm1et hm/aspoet/s4ts SADR TNAD A /oein/rjcshm2p hm/aspoet/s4ug

If you want to query all the current files and directories backed up under a directory and all its subdirectories you need to add the s b i = e option as below: udrys
tm qb /oein/rjcs*-udrys s> a hm/aspoet/ sbi=e Sz ie Bcu Dt akp ae Mm CasAIFl gt ls / ie ---------------- -------- - -52 1-920 1:70 1 20-01 95:9 SADR TNAD A /oein/rjcshs16 hm/aspoet/f00 104 0-220 0:65 ,2 81-01 24:3 SADR TNAD A /oein/rjcshm1ef hm/aspoet/s4pr 52 1-920 1:70 1 20-01 95:9 SADR TNAD A /oein/rjcshm1et hm/aspoet/s4ts 52 2-420 0:25 1 40-02 02:6 SADR TNAD A /oein/rjcshm2p hm/aspoet/s4ug 104 1-920 1:70 ,2 20-01 95:9 SADR TNAD A /oein/rjcshs16ts hm/aspoet/f00/et 104 1-920 1:70 ,2 20-01 95:9 SADR TNAD A /oein/rjcshs16ts/et hm/aspoet/f00/etts2 1,4 0-220 0:12 208 41-01 20:9 SADR TNAD A /oein/rjcshm1eftbe hm/aspoet/s4pr/als 5,2 3-420 0:52 036 00-02 13:6 SADR TNAD A /oein/rjcshm2p/M703 hm/aspoet/s4ugPR02 5,2 2-420 0:81 036 70-02 02:5 SADR TNAD A /oein/rjcshm2p/M709 hm/aspoet/s4ugPR09 1,1 2-420 0:25 103 40-02 02:6 SADR TNAD A /oein/rjcshm2p/dcek hm/aspoet/s4ugm5hc

Note that file specifications with spaces in them will need to be quoted. Thus to query all the files backed up under C \ y :M D c m n sand any sub-directories below it, the following input would be required: ouet
tm qb ":M Dcmns* -udrys s> a C\y ouet\" sbi=e

By default only the current versions of files are listed. In order to query both current active and previous inactive versions of files, add the - n c i e option to the query: iatv
tm qb /oein/rjcs*-udrys-ncie s> a hm/aspoet/ sbi=e iatv Sz ie Bcu Dt akp ae Mm CasAIFl gt ls / ie ---------------- -------- - -52 1-920 1:70 1 20-01 95:9 SADR TNAD A /oein/rjcshs16 hm/aspoet/f00 104 0-220 0:65 ,2 81-01 24:3 SADR TNAD A /oein/rjcshm1ef hm/aspoet/s4pr 52 1-920 1:70 1 20-01 95:9 SADR TNAD A /oein/rjcshm1et hm/aspoet/s4ts 52 2-420 0:25 1 40-02 02:6 SADR TNAD A /oein/rjcshm2p hm/aspoet/s4ug 104 1-920 1:70 ,2 20-01 95:9 SADR TNAD A /oein/rjcshs16ts hm/aspoet/f00/et 104 1-920 1:70 ,2 20-01 95:9 SADR TNAD A /oein/rjcshs16ts/et hm/aspoet/f00/etts2 1,4 0-220 0:12 208 41-01 20:9 SADR TNAD A /oein/rjcshm1eftbe hm/aspoet/s4pr/als 848 0-220 0:11 ,4 31-01 13:8 SADR TNAD I /oein/rjcshm1eftbe hm/aspoet/s4pr/als
www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1 5/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

5,2 036 5,2 036 1,1 103 1,1 103

3-420 0:52 00-02 13:6 2-420 0:81 70-02 02:5 2-420 0:25 40-02 02:6 2-420 1:00 30-02 71:8

SADR TNAD SADR TNAD SADR TNAD SADR TNAD

A A A I

/oein/rjcshm2p/M703 hm/aspoet/s4ugPR02 /oein/rjcshm2p/M709 hm/aspoet/s4ugPR09 /oein/rjcshm2p/dcek hm/aspoet/s4ugm5hc /oein/rjcshm2p/dcek hm/aspoet/s4ugm5hc

Note how the previous versions of files are marked by an I(for Inactive) in the A/I column. Unix and Linux users should be aware of potential confusion of how TSM stores files in nested file spaces. This can arise in the following situation: A user backs-up a file m c n . x on the / s partition in the / s / o a / t directory. yoftt ur urlclec Subsequently, a new disk partition is mounted at / s / o a , or it is defined as a virtualmountpoint. Running the command: urlcl
tm qb /s/oa/t/ s> a urlclec*

will not list the m c n . x file. This is because TSM always looks for a file in the filespace (partition) with the longest name that yoftt matches the file specification you include in the command. In the above example, the file was not backed up under the / s / o a urlcl filespace but under the / s filespace. To tell TSM to look for a file in latter filespace you must specify the filespace explicitly using ur braces, as below:
tm qb {ur/oa/t/ s> a /s}lclec*

5. Backing up your data


5.1. Backing up local disks
The basic syntax for backing up local disk volumes is d m b c u - y e d s v l m ( ) where backup-type is one of sc akptp ik oues, incremental or selective. We recommend incremental backups only; selective backups cause data to be sent even if it already exists on the HFS. By default, if the disk volume is omitted, TSM will backup those volumes specified by the Domain option in the d m o t s.p options file. If Domain is set to All-Local, then to backup all local volumes enter:
tm ic s> nr

where i c is an abbreviation for incremental. nr To incrementally back up specific volumes enter:


tm ic C D F s> nr : : : tm ic / s> nr tm ic / /s /s/oa /oe s> nr ur urlcl hm tm ic NS UR SS AP: s> nr D: S: Y: PS * Wnos * idw * Mc * a * Ui/iu * nxLnx * Ntae * ewr

To run an incremental by date backup of the above, add the - n r y a e option, as in: icbdt
tm ic C D F -nryae s> nr : : : icbdt

To back up entire disk volumes irrespective of whether files have changed since the last backup, use the s l c i ecommand with eetv a wildcard and - u d r y s as below: sbi=e
tm slC\ D\ F\ s> e :* :* :* tm sl/ s> e * tm sl/ /s/ s> e * ur* /oe* hm/ tm slUR* SS* AP: s> e S: Y: PS* -uys s=e -uys s=e -uys s=e -uys s=e * Wnos * idw * Mc * a * Ui/iu * nxLnx * Ntae * ewr

5.2. Backing up selected files


The basic syntax for backing up selected files is similar to that for backing up disk partitions. Be aware, however, that you cannot use wildcards in directory / folder names:
tm ic /oein/rjcshm/ -uys s> nr hm/aspoet/s** s=e

www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1

6/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

AS01 Ivlddmi nm etrd 'hm/aspoet/s** N17E nai oan ae nee: /oein/rjcshm/' tm sl/oein/rjcshm/ -uys s> e hm/aspoet/s** s=e SlcieBcu fnto ivkd eetv akp ucin noe. AS01 Ivldsac fl seiiain'hm/aspoet/s** etrd N18E nai erh ie pcfcto /oein/rjcshm/' nee

You can, however, enter several file specifications on the command line, as below:
* Wnos* * idw * tm ic ":M DcmnsWr dc\" ":M Dcmnshm dc\"-uys s> nr C\y ouet\od os* C\y ouet\tl os* s=e * Mc* * a * tm ic /sr/as* /sr/et*-uys s> nr Uesin/ Uests/ s=e * Ui/iu * * nxLnx * tm ic /oein/rjcshm1et* /oein/rjcshm1ef*-uys s> nr hm/aspoet/s4ts/ hm/aspoet/s4pr/ s=e * Ntae* * ewr * tm ic URin/rjcstm* "S:aspoet/e hm/"-uys s> nr S:aspoet/s/ URin/rjcsnw tl* s=e

6. Restoring your data


The basic syntax for restoring your data is d m r s o e s u c - i e d s i a i n f l . If the destination-file is sc etr orefl etnto-ie omitted then TSM will restore the file(s) to their original location. Be aware that, as with backup, you cannot use wildcards in directory / folder names. By default, TSM will restore the most current active version of a file.

6.1. Restoring selected files


* Wnos* * idw * tm rs ":M DcmnsWr dc\yo.o" ":M Dcmnsrsoe" s> et C\y ouet\od osmdcdc C\y ouet\etr\ tm rs ":M DcmnsWr dc\yo.o" ":M Dcmnsrsoemodo.o" s> et C\y ouet\od osmdcdc C\y ouet\etr\yldcdc * Mc* * a * tm rs /sr/asmfl.x /sr/asrsoe s> et Uesin/yiett Uesin/etr/ tm rs /sr/asmfl.x /sr/asrsoemodiett s> et Uesin/yiett Uesin/etr/ylfl.x * Ui/iu * * nxLnx * tm rs /oein/yiett /oein/etr/ s> et hm/asmfl.x hm/asrsoe tm rs /oein/yiett /oein/etr/ylfl.x s> et hm/asmfl.x hm/asrsoemodiett * Ntae* * ewr * tm rs URin/yiett "S:asrsoe" s> et S:asmfl.x* URin/etr/ tm rs URin/yiett "S:asrsoemodiett s> et S:asmfl.x* URin/etr/ylfl.x"

Note from the first example of each restore above that in order to specify a directory as a destination, you need a trailing / (slash) at the end of the destination-filespec. Otherwise TSM may overwrite a file of the same name. The second example demonstrates a filename in the destination-filespec. Restores of single files cannot be restarted if interrupted. In this case you will need to restore the file afresh.

6.2. Restoring multiple files and directories


* Wnos* * idw *
www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1 7/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

tm rs ":M DcmnsWr dc\" ":M Dcmnsrsoe"-uys s> et C\y ouet\od os* C\y ouet\etr\ s=e * Mc* * a * tm rs /sr/aspoet/s4ts/ /sr/aspoet/etr/-uys s> et Uesin/rjcshm1et* Uesin/rjcsrsoe s=e * Ui/iu * * nxLnx * tm rs /oein/rjcshm1et* /oein/rjcsrsoe -uys s> et hm/aspoet/s4ts/ hm/aspoet/etr/ s=e * Ntae* * ewr * tm rs URin/rjcstm* "S:aspoet/etr/ -uys s> et S:aspoet/s/ URin/rjcsrsoe" s=e

Note that in order to restore a full directory and the contents of all its sub-directories you need the - u y soption. It is always good s=e practice to terminate the destination-filespec with a trailing / (slash) if the element in the destination-filespec is a directory. As this restore is wild-carded, it can be restarted if interrupted due to user input (Ctrl-C), server error or communications error. Restartable restores can be queried via q r s and will restart at the point of interruption. et

6.3. Restoring entire partitions


Essentially, the syntax is the same as in 'Restoring multiple files and directories' above. However, the obvious caveats are to ensure enough space in the destination partition and to allow enough time.
* Wnos* * idw * tm rs C\ D\etr\ -uys s> et :* :rsoe" s=e * Mc* * a * tm rs /sr/ /m/etr/-uys s> et Ues* tprsoe s=e * Ui/iu * * nxLnx * tm rs /oe* /m/etr/-uys s> et hm/ tprsoe s=e * Ntae* * ewr * tm rs UR* URrsoe -uys s> et S: S:etr/ s=e

As with 'Restoring multiple files and directories' above, this restore is wild-carded and thus can be restarted if interrupted.

6.4. Restoring old and/or deleted files


As with the GUI, TSM does not, by default, list or restore old and deleted inactive versions of files and directories. If you need to restore such a file, you need the - n c i e - i koptions. The -pick option, while not strictly necessary, causes TSM to display iatv pc a list of files from which to pick. Issuing a restore as below will display the following pick window:
tm rs /oein/rjcs* /m/etr/-uys -ncie-ik s> et hm/aspoet/ tprsoe s=e iatv pc TMSrlal PC Wno -Rsoe S colbe IK idw etr # Bcu Dt/ie akp aeTm Fl Sz AI Fl ie ie / ie ------------------------------------------------------------------------------------------------10 |1-920 1:70 7. 20-01 95:9 60 B A /oein/rjcshm1eticec.et 5 hm/aspoet/s4ts/nlxlts 11 |1-920 1:70 7. 20-01 95:9 27 K A /oein/rjcshm1etiitbOI .4 B hm/aspoet/s4ts/nta.RG 12 |1-920 1:70 7. 20-01 95:9 27 K A /oein/rjcshm1etiitbTS .4 B hm/aspoet/s4ts/nta.ET 13 |1-920 1:70 7. 20-01 95:9 11 K A /oein/rjcshm1etm5ot .3 B hm/aspoet/s4ts/d.u 14 |3-420 0:52 7. 00-02 13:6 52 B A /oein/rjcshm22ugPR02 1 hm/aspoet/s415p/M703 15 |2-420 0:20 7. 60-02 10:8 52 B I /oein/rjcshm22ugPR02 1 hm/aspoet/s415p/M703 16 |2-420 0:81 7. 70-02 02:5 52 B A /oein/rjcshm22ugPR09 1 hm/aspoet/s415p/M709 17 |2-420 1:73 7. 40-02 91:4 52 B I /oein/rjcshm22ugPR09 1 hm/aspoet/s415p/M709
www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1 8/10

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

18 |2-420 0:25 7. 40-02 02:6 13 K A /oein/rjcshm22ugdmot .5 B hm/aspoet/s415p/s.p 19 |2-420 0:25 7. 40-02 02:6 41 K A /oein/rjcshm22ugdmss .7 B hm/aspoet/s415p/s.y 10 |2-420 0:25 8. 40-02 02:6 11 K A /oein/rjcshm22ugdmiftb .3 B hm/aspoet/s415p/smgsa 11 |2-420 0:25 8. 40-02 02:6 73 K A /oein/rjcshm22ugflsses .0 B hm/aspoet/s415p/ieytm 12 |2-420 0:25 8. 40-02 02:6 12 K A /oein/rjcshm22ugicec .5 B hm/aspoet/s415p/nlxl 13 |2-420 0:25 8. 40-02 02:6 18 B A /oein/rjcshm22ugicec.c 9 hm/aspoet/s415p/nlxlde 14 |2-420 0:25 8. 40-02 02:6 21 B A /oein/rjcshm22ugicec.xss 9 hm/aspoet/s415p/nlxlo_y 15 |2-420 0:25 8. 40-02 02:6 60 B A /oein/rjcshm22ugicec.et 5 hm/aspoet/s415p/nlxlts 16 |2-420 0:25 8. 40-02 02:6 60 B A /oein/rjcshm22ugiedcn 7 hm/aspoet/s415p/nt.of 17 |2-420 0:25 8. 40-02 02:6 27 K A /oein/rjcshm22ugiitb .1 B hm/aspoet/s415p/nta 18 |2-420 0:25 8. 40-02 02:6 10 K A /oein/rjcshm22ugm5hc .0 B hm/aspoet/s415p/dcek 19 |2-420 0:25 8. 40-02 02:6 7.3K A /oein/rjcshm22ugmrpr.243ot 92 B hm/aspoet/s415p/keot002.u 10 |2-420 0:25 9. 40-02 02:6 42 K A /oein/rjcshm22ugsaa.243ot .7 B hm/aspoet/s415p/smp002.u 11 |2-420 0:20 9. 60-02 10:8 1.8M A /oein/rjcshm22ugPR02/02.a 27 B hm/aspoet/s415p/M703703tr 12 |2-420 1:33 9. 50-02 63:6 1.8M I /oein/rjcshm22ugPR02/02.a 27 B hm/aspoet/s415p/M703703tr 0----1----2----3----4----5----6----7----8----9-----0----0----0----0----0----0----0----0----0<>U <>Dw <>Tp <>Bto <#=ih <#=et U=p D=on T=o B=otm R>Rgt L>Lf <#=ooLn # <>Tgl Ety <>Slc Al <>Dslc Al G>Gt ie #=oge nr +=eet l -=eeet l <:+=eetARne<:-=eeetARne <>O <>Cne ##>Slc ag ##>Dslc ag O=k C=acl pc> ik

You are now in the pick interface and can select individual files to restore via the number to the left, scroll up or down via Uand Das described at the bottom of each listing of files. Remember to issue the destination-filespec with the original restore command if you want to prevent overwriting current versions of files with older versions.

7. Restoring your data to another machine


In certain circumstances, it may be necessary to restore some, or all, of your data onto a machine other than the original from which it was backed up. Ideally the machine platform should be identical to that of the original machine. Where this is not possible or practical please note that restores are only possible for partition types that the operating system supports. Thus a restore of an NTFS partition to a Windows 9x machine with just FAT support may succeed but the file permissions will be lost. Please do not attempt cross-platform restores, e.g. by trying to restore files onto a Windows machine that have previously been backed up with a non-Windows one: using TSM for Windows to try to access backups sent by other OS platforms can cause those backups to become inaccessible from the host system. To restore your data to another machine you will need the TSM software installed on the target machine. Entries in d m s sand/or s.y d m o twill need to be edited if the node that you are restoring from does not reside on the same HFS server as the one that you s.p are restoring to. Please see our help page section on TSM configuration files for their locations for your operating system. To check which HFS server is required, please go to View TSM Client Details, where the listed HFS S r e will be the one needed for the evr S r e n m field in both d m s s(Mac/Unix/Linux only) and d m o t(all operating systems). If you do need to edit these evrae s.y s.p files, it is recommended that you first of all make copies so that you can get your old settings back later. The other two values which need to be changed are T P e v rand T P o t in d m s s(Mac/Unix/Linux) or d m o t(Windows/Netware): these CSre CPr, s.y s.p can be got from our page on connecting to the HFS through a firewall, where the relevant fields are in the 'DNS Name' and 'Port' columns respectively. To access files from another machine you should then start the TSM client as below:
dm -itandnm=EDMCIE sc vruloeaeDA.AHN la dm -itandnm=EDMCIE od sc vruloeaeDA.AHN * Wnos Mc Ui/iu * idw, a, nxLnx * Ntae * ewr

where DEAD.MACHINE should be substituted for the nodename of the machine to be restored. You will then be prompted for the TSM password for this machine. Querying and restoring the filestore is then as in the previous section, 6. Restoring your data. You will probably want to restore to a different destination to the original files to prevent overwriting files on the local machine, as below:
tm rs D\ s> et :* D\ETR\ :RSOE -uys s=e * Wnos * idw
9/10

www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1

10/8/12

[IT Services] Using the TSM Client Command Line Interface for Backup & Restore

tm rs /oe*/cac/ s> et hm/ srth -uys s=e tm rs SUC-EVRUR* URrsoe s> et ORESRE\S: S:etr/

-uys s=e

* Mc Ui/iu * a, nxLnx * Ntae * ewr

8. Authorizing another machine to restore your files


If you are responsible for a number of TSM client machines, you can protect against the loss of one machine by authorizing a different machine(s) to restore backup versions of your files. The basic syntax for this is s t a c s b c u f l s e n d e ces akp iepc oe u e n m . Thus to grant the root user on machine ANOTHER.NODE access to restore the /home filespace, you would issue the srae following:
tm stacbcu /oe**aohrnd ro s> e c akp hm// nte.oe ot

The equivalent commands on Windows and Netware machines would look like:
tm stacbcu c\ aohrp sse s> e c akp :* nte.c ytm tm stacbcu UR* aohrsr ro s> e c akp S: nte.v ot * Wnos * idw * Ntae * ewr

The current access list can be queried and deleted using the q e y a cand d l t a ccommands. ur c eee c Once access has been granted from another machine, you can query and restore files from that machine to your local machine using the - r m o eoption, as below: fond
tm qfls-rmoeAOHRND s> ie fond=NTE.OE tm rs -rmoeAOHRND /oe** /oersoe s> et fond=NTE.OE hm// hm/etr/

9. Changing your TSM password


The TSM password is set to expire approximately one year after registration and at one-yearly intervals after that. Prior to this automatic expiry, you will be contacted to remind you to re-set this password. Note that even if you have the option
PSWRACS Gnrt ASODCES eeae

set in your options file, it is recommended you manually re-set your TSM password. To do this at the t m prompt enter: s>
tm stpswr odasod nwasod s> e asod lpswr epswr

University of Oxford.

About Contact Privacy Cookies Feedback Accessibility IT Services documents are available in alternative formats through advance request from the Help Centre. Written by Ian Smith, April 2002. Latest revision Mon, 17 Sep 2012 [Change Page Style: Simple text | Printable version | Normal ]

www.oucs.ox.ac.uk/hfs/backup/allcli/index.xml?splitLevel=-1

10/10

Anda mungkin juga menyukai