0% found this document useful (0 votes)
195 views2 pages

How To Restore Files From The TSM Backup Using CLI

The document discusses how to restore files from a TSM backup using the command line interface. It provides instructions on launching the dsmc program, lists useful commands like querying the last backup and restoring single files or entire directories, and explains how to restore from a specific date if the file has been deleted. Backups are performed daily and files are stored for one year.

Uploaded by

Manoj Bhat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views2 pages

How To Restore Files From The TSM Backup Using CLI

The document discusses how to restore files from a TSM backup using the command line interface. It provides instructions on launching the dsmc program, lists useful commands like querying the last backup and restoring single files or entire directories, and explains how to restore from a specific date if the file has been deleted. Backups are performed daily and files are stored for one year.

Uploaded by

Manoj Bhat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How to restore files from the TSM backup

using the Command Line Interface


2012-11-30/PM

You can restore files from the backup yourself using the Command Line Interface in
Terminal.app. This is slightly more tricky than using the GUI: primarily, you more or less
need to know the name of the file you are looking for. Two sources of information
that can help is the daily logs in /CS/Backup (user readable) or the master log
located in /Library/Logs/tivoli/tsm/dsmsched.log (readable by root only).
These files include every file that has been backed up (note that these log files are trun-
cated after 30 days). Once you do have the filename, CLI restore is pretty simple. Note
that the dsmc program doesn't use backspace; use ctrl-h instead!
Restore, like backup, can be performed from any location; all you need is an internet
connection and port 1500 open in any firewall you might encounter.
Files are stored for a year and backup is performed daily (if computer is awake and have
an IP-address). Versions of backed up files are stored for one year. The most recent
version of every file that has not been deleted will always remain, irrespective of it's
age. Deleted files can be restored from the back up for up to one year.

NOTE: You need to know the name and password of an administrative user!!

Managing dsmc (the backup program):

1. Become root:
$ su adminusername
Enter admin user password
$ sudo -i
Enter admin user password again
2. Launch dsmc:
$ dsmc
3. When you are done, leave dsmc:
tsm> quit

Useful commands from the command line:

See when the computer was last backed up:


query filespace (or the short form: q fi )

Restore a single file, using the most recent backup, placing it in the original location:
restore "/Users/peter/Documents/My Thesis.rtf"
if the file name contains spaces, it must be surrounded by quotes!

Same as above, but placing it in the directory /Restored instead:


restore "/Users/peter/Documents/My Thesis.rtf" /Restored/
you must have a trailing slash in the name of the restore-directory
if the restore-directory doesn't exist, it will be created
If the file you are restoring no longer resides on your workstation, and you have run an
incremental backup since deleting the file, there is no active backup of the file on the
server. In this case, use the latest option to restore the most recent backup version.
restore /Users/peter/h1.doc -latest

Restore an entire directory to the location /Users/tomas/Restoredfiles/ , using


the most recent backup:
restore -subdir=yes /Users/peter/Documents/* /Users/peter/
Restored/

Look for files from a specific date (pitd=Point In Time Date) and pick among those:
restore -pitd=2012-06-15 -subdir=yes "/Users/peter/*dmg" -pick
/Restored/
You will get a listing such as this that you can choose from

IBM Tivoli Storage Manager


Command Line Backup-Archive Client Interface
Client Version 6, Release 1, Level 4.0
Client date/time: 2012-11-15 15:27:51
(c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights Reserved.

Node Name: PARAVEL


Session established with server TSM1: Linux/x86_64
Server Version 5, Release 5, Level 0.0
Server date/time: 2012-11-15 15:27:51 Last access: 2012-11-15 15:27:42

Restore function invoked.

TSM Scrollable PICK Window - Restore

# Backup Date/Time File Size A/I File

--------------------------------------------------------------------------------------
1. | 2012-06-15 09:56:41 72 B I /Users/peterm
2. | 2011-09-13 10:15:22 72 B A /Users/peterm/InstaDMG/
3. | 2011-09-13 10:16:55 72 B A /Users/peterm/InstaDMG/Resources
4. | 2011-09-13 10:16:55 72 B A /Users/peterm/InstaDMG/Resources/Instadmg
|
|
|

0---------10--------20--------30--------40--------50--------60--------70--------80----
<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>

All these commands can be run without actually starting dsmc; in that case just
proceed the commands above with dsmc!

You might also like