You are on page 1of 3

Some possibly useful examples (zet voor de zekerheid het source-path altijd tuss

en dubbele quotes !!!):


Restore filesystem data to another file system with no or replace:
restore "/snap/etli02/ora/pdwetos2/undo_1/*" /ora2/pdwetos2/undo_1/ -rep=n
restore "/snap/etli02/ora/pdwetos2/undo_1/*" /ora2/pdwetos2/undo_1/ -rep=y
restore "/snap/etli02/ora/pdwetos2/undo_1/*" /ora2/pdwetos2/undo_1/ -rep=a
--> -rep=a helpt ook voor readonly objecten
The same, but with a specific Point in Time:
restore -pitd=9/22/2008 -pitt=14:30:00 "/snap/etli02/ora/*" /ora2/ -rep=a
In-place directory restore zonder replace, waarvan geen active backup meer aanwe
zig is:
restore "/psnl/reports/1018/*" -inactive -rep=n
Als je er een logfile van wilt hebben, probeer het dan zo:
sudo dsmc restore "/opt/essbase1/*" -sub=y -rep=a -ifnewer -se=zaandam > restore
.log
--> Deze vult de ontbrekende objecten in een structuur vanuit Tsm weer aan, met
gebruik van een andere server-stanza
--> met PIT en logfile:
sudo dsmc restore -pitd=2/3/2010 -pitt=07:00:00 "/opt/ctmagent/*" -sub=y -rep=a
> restore.log
(Je kunt dus -subdir=yes meegeven (maar ik ben niet zeker of dat noodzakelijk is
of niet) ..)
Bovenstaande voorbeelden kunnen uiteraard in andere combinaties gecombineerd wor
den.
In background met PIT en LOGFILE:
nohup sudo dsmc restore -pitd=11/26/2009 -pitt=12:00:00 "/appl/acc/webm/is127/wm
65/IntegrationServer/config/*" -sub=y -rep=a > restore.log 2>&1 &
nohup sudo dsmc restore "/appl/tst/wmadmin/vendor/wm96/IS3/*" -sub=y > restore.
log 2>&1 &
restore -pitd=12/2/2009 -pitt=07:00:00 "/data/prd/spine/sbo1/els/spine_log" /app
l/prd/spine/sbo1/log/ -rep=n -subdir=n
restore -pitd=12/12/2009 -pitt=08:00:00 "/prod/lisa/db/lisa.lg" /home/ieds626/lo
g/sat/ -rep=n -subdir=n
Restore filesystem data naar een ander filesystem zonder of met replace:
restore "/export/home/iats008/*" /tmp/export/home/iats008/ -rep=n
restore "/export/home/*" /tmp/export/ -rep=n
nohup sudo dsmc restore "/export/home/*" /tmp/export/ -rep=n > restore.log 2>&1
&
restore "/data/prd/ahdw/TgtFiles/kik*" /data/prd/ahdw/TgtFiles/ -ina -pick
q backup /data/prd/ahdw/TgtFiles/kik* -ina -subdir=yes
restore /appl/prd/ise/frdh
Handige query backup commando's :

--------------------------------tsm> q backup "/export/em/home/rajive/.sh_history" -inact


Size
Backup Date
Mgmt Class A/I File
----------------------- --- ---1.666 B 03/28/2011 21:00:20
DEFAULT
A /export/em/home/rajive/
.sh_history
2.864 B 01/19/2011 21:51:41
DEFAULT
I /export/em/home/rajive/
.sh_history
restore -pitd=01/19/2011 -pitt=22:00:00 "/export/em/home/rajive/.sh_history" /tm
p/rajive/home/ -rep=n -subdir=n

restore -pitd=04/07/2011 /etc/pam.conf /tmp/etc/ -rep=n -sub=n


q backup /etc/pam.conf -inact -subdir=n
q backup /etc/passwd -inact -subdir=n
restore -tod=07/06/2013 -tot=20:00:00 "/*" -ina -subd=y -rep=yes /zones/ahc304/v
srv/root/
example for restore to anoter destination:
restore "/var/*" -pitd=07/06/2013 -pitt=20:00:00 -ina -subd=y -rep=yes /zones/ah
c302/vsrv/root/var/
restore "/*" -pitd=07/06/2013 -pitt=20:00:00 -ina -subd=y -rep=yes /zones/ahc302
/vsrv/root/
restore "/appl/prd/ise/frdh/*" -pitd=12/04/2013 -ina -subd=y -rep=yes /appl/prd/
ise/frdh/
restore "/data/prd/ise/frdh/*" -pitd=12/04/2013 -ina -subd=y -rep=yes /data/prd/
ise/frdh/
restore -pitd=03/14/2014 "/data/prd/websphere/webas/*" -subd=y -repl=y
restore -pitd=02/11/2014 "/opt/softbrick/*" -rep=y -subdir=y -ina -pick

nohup sudo dsmc restore -pitd=08/04/2014 -pitt=23:59:59 "/appl/oracle/e2e/fmw/11


g/*" -rep=a -subdir=y -ina > restore_135523.log 2>&1 &
nohup sudo dsmc restore "/appl/oracle/st/fmw/11g/*" -rep=a -subdir=y -ina > rest
ore_137331.log 2>&1 &
rvs (prvs):
nohup sudo dsmc restore -pitd=09/02/2014 -pitt=23:59:59 "/probackup/corp/prd/rvs
/*" -rep=a -subdir=y -ina -pick /probackup/corp/db_bkp/ > restore_135757_rvs.log
2>&1 &
/probackup/corp/prd/rvs
nohup sudo dsmc restore -pitd=09/02/2014 -pitt=23:59:59 "/probackup/corp/prd/rvs
/*" -rep=a -subdir=y -ina -pick /probackup/corp/db_bkp/ > restore_135757_rvs.log
2>&1 &
/probackup/corp/prd/rvs
lra (plra): /probackup/corp/prd/lra

nohup sudo dsmc restore -pitd=09/01/2014 -pitt=23:59:59 "/probackup/corp/prd/lra


/*" -rep=a -subdir=y -ina /probackup/corp/db_bkp/ > restore_135757_lra.log 2>&1
&
spaarf (pspaarf): /probackup/corp/prd/spf
nohup sudo dsmc restore -pitd=09/02/2014 -pitt=23:59:59 "/probackup/corp/prd/spf
/*" -rep=a -subdir=y -ina /probackup/corp/db_bkp/ > restore_135757_spf_2.log 2>&
1 &
wvb (pwvb): /probackup/corp/prd/rvs
nohup sudo dsmc restore -pitd=09/02/2014 -pitt=23:59:59 "/probackup/corp/prd/rvs
/*" -rep=a -subdir=y -ina /probackup/corp/db_bkp/ > restore_135757_rvs_2.log 2>&
1 &
nohup sudo dsmc restore "/srv/ha_prd_isc_nfs_vg/prd_fmw_lv/*" -subd=yes -rep=a /
restore/daily_restore/ > restore_daily.log 2>&1 &
nohup sudo dsmc backup image /srv/ha_uat_isc_nfs_vg/pt_fmw_lv > backup_image.log
2>&1 &
pakketbh (ppakketbh): /probackup/corp/prd/rvs

********************************************************************************
******************************************
Retreive commands:
********************************************************************************
******************************************
pl: ahc529
sudo
tf/"
sudo
tf/"

dsmc retrieve -replace=no -description="cavi_jc-201312201446" "/data/acc/in


"/var/tmp/seas_acc_dat/dat/" > retreive_01.log 2>&1 &
dsmc retrieve -replace=no -description="cavi_jd-201312201613" "/data/acc/in
"/var/tmp/seas_acc_dat/dat/" > retreive_02.log 2>&1 &

pl: ahg307
sudo dsmc restore -pitd=07/12/2014 -pitt=23:59:59 "/opt/*" -subd=y -ina /export/
em/home/restore/

You might also like