0% found this document useful (0 votes)
1K views

DSMC Commands

The document provides examples of commands for the Tivoli Storage Manager client (dsmc) to perform backups, restores, and manage archives. It includes examples of querying backups, schedules, restoring files between dates or to a point in time, restoring from archive, and more.

Uploaded by

danilaix
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

DSMC Commands

The document provides examples of commands for the Tivoli Storage Manager client (dsmc) to perform backups, restores, and manage archives. It includes examples of querying backups, schedules, restoring files between dates or to a point in time, restoring from archive, and more.

Uploaded by

danilaix
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

9/2/13 Tivoli Storage Manager Client Commands (dsmc commands) | docs

docs.gz.ro/node/41 1/3
docs
tutorials, commands, useful
information
Username Password
Log in
Home Tips & Tricks
Tweet 0 Like 0 Share
Tivoli Storage Manager Client Commands (dsmc
commands)
Submitted by root on Fri, 10/21/2011 - 17:16
These are just some hints. For more details please check dsmc manual.
How to enter to TSM client:
root@gz~# dsmc
How to check where are the configuration files (usually is /usr/tivoli/tsm/client/ba/bin):
root@gz~# echo $DSM_DIR
How to check when last backup ran:
root@gz~# dsmc q fi
How to check schedule (use -se if you want to check it for a specific server):
root@gz~# dsmc q sched
root@gz~# dsmc q sched -se=tsmserver1
How to look for files under some directory:
root@gz~# dsmc q b -subdir=yes -inactive "/data/stuff/*"
How to look for files under some directory on the backup server for a host:
root@gz~# dsmc q b -inactive -subdir=yes -se=&ltclient> "/data/stuff/*"
How to restore from incremental backup all files in /data/stuff directory, including the deleted ones active or
inactive:
root@gz~# dsmc restore -subdir=yes -latest "/data/stuff/*"
How to restore files to /tmp/oldfiles:
root@gz~# dsmc restore -pick -subdir=yes "/data/stuff/*" /tmp/oldfiles/
How to restore inactive files:
root@gz~# dsmc restore -inactive -pick -subdir=yes "/data/stuff/*" /tmp/oldfiles/
How to restore without overwriting existing files:
root@gz~# dsmc restore -verbose -subdir=yes rep=no /data/stuff/
How to look for all *.arc files between specific days mm/dd/yyyy:
root@gz~# dsmc q b -inactive -dateformat=1 -subdir=yes "/oracle/archives/*.arc" -FROMdate=01/03/2010 -
TODate=01/03/2010
How to run a backup now:
root@gz~# dsmc incr -ver
How to backup a single file:
root@gz~# dsmc backup "/etc/filesystems"
How to restore /exploit/ to a point in time:
root@gz~# dsmc restore -subdir=y -ina -pitdate="10/08/11" "/exploit/*" /tmp/exploit-restore/
How to restore some files between dates:
root@gz~# dsmc restore -subdir=y -ina "/exploit/*" /tmp/exploit-restore/ -FROMdate=05/03/2010 -
9/2/13 Tivoli Storage Manager Client Commands (dsmc commands) | docs
docs.gz.ro/node/41 2/3
TODate=06/03/2010
How to display a list of all your backups on /home/ (use the detail option to display the last modification date
and the creation date of each file):
root@gz~# dsmc q backup -sub=yes -detail "/home/*"
How to display a list of all your backed up files with dateformat and timeformat options:
root@gz~# dsmc q b -date=1 -time=4 -su=y "/home/*"
How to include the timeformat option in a command (it must precede the fromtime, pittime, and totime
options):
root@gz~# dsmc q b -date=1 -timeformat=4 -fromd=05/01/2006 -fromt=11:59AM /
How to display a list of active and inactive backup versions of files from which you can select versions to
restore:
root@gz~# dsmc restore "/user/project/*"-pick -inactive
How to restore all files in the /home/ directory to their state as of 3:00 PM on March 10, 2010.:
root@gz~# dsmc restore -pitd=3/10/2010 -pitt=15:00:00 /home/
How to restore from archive:
List the backups:
root@gzaix # dsmc q arch /home/user/important.txt
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 3, Level 5.4
Client date/time: 02/23/12 13:44:54
(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights Reserved.
Node Name: GZAIX
Session established with server GZTSMSERV: AIX-RS/6000
Server Version 5, Release 5, Level 5.2
Server date/time: 02/23/12 13:44:54 Last access: 02/23/12 13:44:47
Size Archive Date - Time File - Expires on - Description
---- ------------------- -------------------------------
12,892,074 B 03/02/11 06:22:39 /home/user/important.txt 03/01/12 Archive Date: 03/02/11
14,837,646 B 04/02/11 06:19:00 /home/user/important.txt 04/01/12 Archive Date: 04/02/11
16,764,897 B 05/02/11 05:48:05 /home/user/important.txt 05/01/12 Archive Date: 05/02/11
25,636,989 B 06/02/11 06:10:06 /home/user/important.txt 06/01/12 Archive Date: 06/02/11
31,112,013 B 07/02/11 06:18:35 /home/user/important.txt 07/01/12 Archive Date: 07/02/11
29,823,633 B 08/02/11 06:43:03 /home/user/important.txt 08/01/12 Archive Date: 08/02/11
22,432,587 B 09/02/11 09:01:12 /home/user/important.txt 09/01/12 Archive Date: 09/02/11
20,339,856 B 10/05/11 11:57:45 /home/user/important.txt 10/04/12 Archive Date: 10/05/11
20,339,856 B 10/05/11 11:57:45 /home/user/important.txt 10/04/12 Archive Date: 10/05/11
13,886,136 B 11/02/11 05:51:21 /home/user/important.txt 11/01/12 Archive Date: 11/02/11
7,927,674 B 12/07/11 05:37:25 /home/user/important.txt 12/06/12 Archive Date: 12/07/11
8,516,901 B 01/03/12 12:03:54 /home/user/important.txt 01/02/13 Archive Date: 01/03/12
2,150,058 B 02/02/12 06:15:12 /home/user/important.txt 02/01/13 Archive Date: 02/02/12
Run the restore command:
root@gzaix # dsmc retrieve /home/user/important.txt /tmp/bm/ -FROMdate=09/02/11 -TODate=09/02/11
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 3, Level 5.4
Client date/time: 02/23/12 14:58:31
(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights Reserved.
Retrieve function invoked.
Node Name: GZAIX
Session established with server GZTSMSERV: AIX-RS/6000
Server Version 5, Release 5, Level 5.2
Server date/time: 02/23/12 14:58:31 Last access: 02/23/12 14:55:43
Total number of objects retrieved: 2
Total number of objects failed: 0
Total number of bytes transferred: 21.39 MB
Data transfer time: 0.24 sec
9/2/13 Tivoli Storage Manager Client Commands (dsmc commands) | docs
docs.gz.ro/node/41 3/3
Network data transfer rate: 88,638.33 KB/sec
Aggregate data transfer rate: 179.85 KB/sec
Elapsed processing time: 00:02:01
List the result:
root@gzaix # ls -la /tmp/bm/user/important.txt
-rw-rw-rw- 1 root cft 22432587 Sep 02 06:10 /tmp/bm/user/important.txt
to post comments
Tweet
0 0
Like
Share
RECENT CONTENT
Oracle: display tablespace information with sizes
root
getconf: bootinfo replacement
root
How to give more memory to Lotus Notes in Linux
root
How to add a swap file in linux
root
Linux backup/restore/reinstall
root
How to add exfat support on RHEL 6
root
Misc Stuff
root
VirtualBox Tips&Tricks
root
How to write CD or DVD under linux's console
root
How to recover LVM structure after a disk crash
root
VIO Commands
root
Strings or File Manipulation
root
Windows CMD
root
Oracle: How to connect to the listener and display a parameter's value
root
AIX Print commands
root
AIX Install packages, upgrade, patching commands
root
Miscellaneous
root
Oracle: dbfsize Header block magic number is bad
root
Mafia II Joe's Adventures - Playboy Locations
root
HMC commands
root

You might also like