ADSM-L

Re: [ADSM-L] command line restore for solaris client

2008-10-09 14:12:51
Subject: Re: [ADSM-L] command line restore for solaris client
From: Timothy Hughes <Timothy.Hughes AT OIT.STATE.NJ DOT US>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 9 Oct 2008 13:52:08 -0400
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