Re: [ADSM-L] command line restore for solaris client
2008-10-09 14:57:43
Thanks Andy!
I had used another command similar to that and faired a little better,
But I will use yours if mine wasn't sufficient.
Regards!
tsm> restore -pitdate=08/17/2007 /var/opt/SUNWdsee/instances/*
-replace=yes -ina
Restore function invoked.
ANS1247I Waiting for files from the server...
** Interrupted **]
ANS1114I Waiting for mount of offline media.
Restoring 9,883,961 /var/opt/SUNWdsee/instances/accessmanager.ldif
[Done]
Restoring 381,440
/var/opt/SUNWdsee/instances/accessmanagerschema.tar [D
one]
Restoring 512
/var/opt/SUNWdsee/instances/identity_and_access_manage
r_instance02 [Done]
Restoring 512
/var/opt/SUNWdsee/instances/identity_and_access_manage
r_instance01 [Done]
Restoring 512
/var/opt/SUNWdsee/instances/application_service [Done]
Restore processing finished.
Total number of objects restored: 5
Total number of objects failed: 0
Total number of bytes transferred: 9.79 MB
Data transfer time: 0.26 sec
Network data transfer rate: 38,005.19 KB/sec
Aggregate data transfer rate: 1.45 KB/sec
Elapsed processing time: 01:54:30
tsm>
Andrew Raibeck wrote:
instances is a directory. To restore the contents of that directory (files
in that dir, child subdirectories and their files), you need to append the
'/' to the end of the directory name:
restore /var/opt/SUNWdsee/instances/ -subdir=yes -pitdate=... -pittime=...
(I'll let you fill in the pitdate and pittime parms)
If you don't want subdirectories of ../instances, then use -subdir=no
(which is the default, unless you have SUBDIR YES in your options file or
client option set).
Best regards,
Andy
Andy Raibeck
IBM Software Group
Tivoli Storage Manager Client Product Development
Level 3 Team Lead
Internal Notes e-mail: Andrew Raibeck/Tucson/IBM@IBMUS
Internet e-mail: storman AT us.ibm DOT com
IBM Tivoli Storage Manager support web page:
http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html
The only dumb question is the one that goes unasked.
The command line is your friend.
"Good enough" is the enemy of excellence.
From:
Timothy Hughes <Timothy.Hughes AT OIT.STATE.NJ DOT US>
To:
ADSM-L AT VM.MARIST DOT EDU
Date:
10/09/2008 02:13 PM
Subject:
Re: command line restore for solaris client
Micheal, Remco Thanks for your reponses!
Remco, Unfortunatley I can't use the Gui to do these restore's because
there on another network and we have to connect to them through a
windows box with putty on it. Otherwise the GUI is my first option.
I did the following query commands and the earliest date is 08/17/08.
Looks like that is the earliest date I can find.
tsm> query backup /var/opt/SUNWdsee/instances*
Size Backup Date Mgmt Class
A/I File
---- ----------- ----------
--- ----
512 B 08/17/07 00:19:00 PROD730
A /var/opt/SUNWdsee/instances
query backup /var/opt/SUNWdsee/instances/
Size Backup Date Mgmt Class
A/I File
---- ----------- ----------
--- ----
512 B 08/17/07 00:19:03 PROD730
A /var/opt/SUNWdsee/instances/application_service
512 B 08/17/07 00:19:03 PROD730
A /var/opt/SUNWdsee/instances/identity_and_access_ma
nager_instance01
512 B 08/17/07 00:19:03 PROD730
A /var/opt/SUNWdsee/instances/identity_and_access_ma
nager_instance02
1,024 B 10/08/08 00:13:14 PROD730
A /var/opt/SUNWdsee/instances/test
9,883,961 B 08/17/07 00:19:04 DEFAULT
A /var/opt/SUNWdsee/instances/accessmanager.ldif
381,440 B 08/17/07 00:19:04 DEFAULT
A /var/opt/SUNWdsee/instances/accessmanagerschema.ta
r
431,596,032 B 10/09/08 00:11:21 DEFAULT
A /var/opt/SUNWdsee/instances/ldapinstancesbackp-10-
08-2008.tar
tsm> query backup /var/opt/SUNWdsee/instances -ina -subdir=y
Size Backup Date Mgmt Class
A/I File
---- ----------- ----------
--- ----
512 B 08/17/07 00:19:00 PROD730
A /var/opt/SUNWdsee/instances
tsm> query backup /var/opt/SUNWdsee/instances/ -ina
Size Backup Date Mgmt Class
A/I File
---- ----------- ----------
--- ----
512 B 08/17/07 00:19:03 PROD730
A /var/opt/SUNWdsee/instances/application_service
512 B 08/17/07 00:19:03 PROD730
A /var/opt/SUNWdsee/instances/identity_and_access_ma
nager_instance01
512 B 08/17/07 00:19:03 PROD730
A /var/opt/SUNWdsee/instances/identity_and_access_ma
nager_instance02
1,024 B 10/08/08 00:13:14 PROD730
A /var/opt/SUNWdsee/instances/test
9,883,961 B 08/17/07 00:19:04 DEFAULT
A /var/opt/SUNWdsee/instances/accessmanager.ldif
381,440 B 08/17/07 00:19:04 DEFAULT
A /var/opt/SUNWdsee/instances/accessmanagerschema.ta
r
431,596,032 B 10/09/08 00:11:21 DEFAULT
A /var/opt/SUNWdsee/instances/ldapinstancesbackp-10-
08-2008.tar
I did the following why does the file size say 512 but it say's 0 bytes
transferred?
tsm> restore -pitdate=08/17/2007 /var/opt/SUNWdsee/instances*
Restore function invoked.
Restoring 512 /var/opt/SUNWdsee/instances [Done]
Restore processing finished.
Total number of objects restored: 1
Total number of objects failed: 0
Total number of bytes transferred: 0 B
Data transfer time: 0.00 sec
Network data transfer rate: 0.00 KB/sec
Aggregate data transfer rate: 0.00 KB/sec
Elapsed processing time: 00:00:03
Remco Post wrote:
I guess this is a directory?
dsmc q back /var/opt/SUNWdsee/ -ina -subdir=y could help you verify
dsmc rest -pitdate=5/30/2007 /var/opt.SUNWdsee/instances/ -repl=all -
subdir=y
or something
or, if all else fails, get a gui and point&click (dsm).
On 9 okt 2008, at 16:57, Timothy Hughes wrote:
Hello All,
I am trying to do a restore and so far I am having no luck with this
command after several tries.
Can anyone help?
Thanks
tsm> restore -pitdate=5/30/2007 -pittime=07:00:00
/var/opt/SUNWdsee/instances -
eplace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> restore -pitdate=5/30/2007 -pittime=07:00:00
/var/opt/SUNWdsee/instances - replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/intstances -
replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> res -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> rest -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -
replace=all
Restore function invoked.
ANS1302E No objects on server match query
# dsmc
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 5, Level 0.1
Client date/time: 10/09/08 10:44:37
(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights
Reserved.
tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -
replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> restore -pitdate=5/30/2007 /var/opt/SUNWdsee/instances -
replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> restore -pitdate=5/30/2007 "/var/opt/SUNWdsee/instances -
replace=all
Restore function invoked.
ANS1079E No file specification entered
tsm> res -pitdate=5/30/2007 "/var/opt/SUNWdsee/instances" -
replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm> restore -pitdate=5/30/2007 "/var/opt/SUNWdsee/instances" -
replace=all
Restore function invoked.
ANS1302E No objects on server match query
tsm>
--
Remco Post
r.post AT plcs DOT nl
+31 6 24821 622
|
|
|