You are here: GSI Wiki>Linux Web>TsmBackup (revision 40)EditAttach

Restore my files with TSM

We run Tivoli Storage Manager (TSM) to backup our user home FileSystems to TapeStorage. The backup policy is summarized at https://www.gsi.de/en/work/organisation/geschaeftsbereiche/finanzen_einkauf_bit/bit/service/backup/policy.htm

Restore of files from the /u/ filesystem

TSM GUI

Attention: If GUI option is not running because of JAVA problems, please, use command line (further down) or open ticket at storage-service@gsi.de

  • Login to machine lxdv68: ssh -X lxdv68
  • Find which fileserver (lxfsu11 to lxfsu20) is serving your home directory: df | grep lxfsu
  • Start a GUI session on the specific fileserver by typing dsm -server=lxfsui (ifrom 11 to 20).
    • Choose the restore button (Restore files and directories to your system).
    • The Restore window will appear.
    • To retrieve deleted files or older versions of a file (inactive) you'll have to choose View -> Display active/inactive files from the menu first.
  • Check the files you want to restore and click Restore
    • You'll be asked for the restore destination
    • Restore to the original location will not work!
      Check Restore partial path instead and select the parent directory of the lost files/dirs (/i_j/your_account/[some_subdir]) as the destination directory ( Following location) to restore the files to their original location.
  • Click Restore and wait patiently wink

TSM Command Line Interface

Experienced users may also use the TSM command line interface dsmc:

  • login as user on lxdv68 (only on this machine !)

  • The basic syntax is dsmc restore -servername=lxfsuXX options file-specification _destinationfilespace__ (with _XX =11-20), e.g.:
    • Restoring a single file:
      dsmc restore -servername=lxfsu13 /srv/nfs/u13_1/dvheta/filename /u/dvheta/
    • Restoring a whole directory tree (including all files in all subdirs) to a different directory:
      dsmc restore -servername=lxfsu13 -subdir=yes "/srv/nfs/u13_1/dvheta/directory/*" /tmp/restore/
    • Restoring files which were deleted or restoring older versions of files:
      dsmc restore -servername=lxfsu13 -subdir=yes -inactive=yes -pick /srv/nfs/u03_1/dvheta/filename /u/dvheta/
      you get then the versions of your file, marked with A (Active) or I (Inactive) for older versions. You choose the version by typing the key number of the file and then typing "o" for ok.
TSM Scrollable PICK Window - Restore

     #    Backup Date/Time        File Size A/I  File
        --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1. | 17.03.2012 01:10:53      20,00 KB  A   /srv/nfs/u09_1/matthias
     2. | 17.03.2012 13:07:11         52  B  A   /srv/nfs/u09_1/matthias/adsm
     3. | 11.09.2012 14:06:33       5,78 KB  A   /srv/nfs/u09_1/matthias/emil.mac
     4. | 17.03.2012 13:07:14       5,78 KB  I   /srv/nfs/u09_1/matthias/emil.mac
     5. | 17.03.2012 13:07:28       8,00 KB  A   /srv/nfs/u09_1/matthias/adsm/macros
     6. | 17.03.2012 13:07:28       1,15 KB  A   /srv/nfs/u09_1/matthias/adsm/macros/emil.mac

<U>=Up  <D>=Down  <T>=Top  <B>=Bottom  <R#>=Right  <L#>=Left
<G#>=Goto Line #  <#>=Toggle Entry  <+>=Select All  <->=Deselect All
<#:#+>=Select A Range <#:#->=Deselect A Range  <O>=Ok  <C>=Cancel
pick> 4

TSM Scrollable PICK Window - Restore

     #    Backup Date/Time        File Size A/I  File
        --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     1. | 17.03.2012 01:10:53      20,00 KB  A   /srv/nfs/u09_1/matthias
     2. | 17.03.2012 13:07:11         52  B  A   /srv/nfs/u09_1/matthias/adsm
     3. | 11.09.2012 14:06:33       5,78 KB  A   /srv/nfs/u09_1/matthias/emil.mac
x    4. | 17.03.2012 13:07:14       5,78 KB  I   /srv/nfs/u09_1/matthias/emil.mac
     5. | 17.03.2012 13:07:28       8,00 KB  A   /srv/nfs/u09_1/matthias/adsm/macros
     6. | 17.03.2012 13:07:28       1,15 KB  A   /srv/nfs/u09_1/matthias/adsm/macros/emil.mac

How to archive (and retrieve !) files on Linux

  • login as user on lxdv68 (only on this machine !)

  • Next check on which fileserver your home resides: df | grep lxfsu.
lxfsu19:/srv/nfs/u09_1/matthias
                     419225600 252320488 166905112  61% /u/matthias

  • Now enter TSM client on correct server:
dsmc -server=lxfsu19 

  • Archive example:
archive /tmp/matthias/*.JPG

Archive function invoked.

Directory-->               4.096 /tmp/matthias [Sent]      
Normal File-->         4.848.059 /tmp/matthias/CIMG0285.JPG [Sent]      
Normal File-->         3.340.857 /tmp/matthias/CIMG0286.JPG [Sent]      
Normal File-->         3.330.268 /tmp/matthias/CIMG0288.JPG [Sent]      
Normal File-->         5.130.990 /tmp/matthias/CIMG0289.JPG [Sent]      
Normal File-->         4.784.934 /tmp/matthias/CIMG0290.JPG [Sent]      
Normal File-->         4.558.647 /tmp/matthias/CIMG0291.JPG [Sent]      
Normal File-->         3.795.396 /tmp/matthias/CIMG0292.JPG [Sent]      
Normal File-->         4.546.286 /tmp/matthias/CIMG0293.JPG [Sent]      
Normal File-->         2.492.538 /tmp/matthias/CIMG0294.JPG [Sent]      
Normal File-->         3.298.909 /tmp/matthias/CIMG0295.JPG [Sent]      
Archive processing of '/tmp/matthias/*.JPG' finished without failure.

  • Example to get data back with retrieve command (after delete of original data):
tsm> retrieve /tmp/matthias/*
Retrieve function invoked.

Retrieving       4.848.059 /tmp/matthias/CIMG0285.JPG [Done]      
Retrieving       3.340.857 /tmp/matthias/CIMG0286.JPG [Done]      
Retrieving       3.330.268 /tmp/matthias/CIMG0288.JPG [Done]      
Retrieving       5.130.990 /tmp/matthias/CIMG0289.JPG [Done]      
Retrieving       4.784.934 /tmp/matthias/CIMG0290.JPG [Done]      
Retrieving       4.558.647 /tmp/matthias/CIMG0291.JPG [Done]      
Retrieving       3.795.396 /tmp/matthias/CIMG0292.JPG [Done]      
Retrieving       4.546.286 /tmp/matthias/CIMG0293.JPG [Done]      
Retrieving       2.492.538 /tmp/matthias/CIMG0294.JPG [Done]      
Retrieving       3.298.909 /tmp/matthias/CIMG0295.JPG [Done]      

Retrieve processing finished.

-- ChristopherHuhn, MatthiasFeyerabend -- 2005 - 2012
Edit | Attach | Print version |  PDF | History: r42 | r41 < r40 < r39 < r38 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r40 - 2017-08-17, SergeiSedykh