ADSM-L

Re: [ADSM-L] restore string syntax question (solaris)

2011-03-10 11:12:45
Subject: Re: [ADSM-L] restore string syntax question (solaris)
From: Andrew Raibeck <storman AT US.IBM DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 10 Mar 2011 11:10:56 -0500
Timothy,

If you run the command line client in "batch" mode (dsmc restore ...) then
the quotes are needed to avoid Unix-style wildcard expansion of file names.
If you run the command in "loop" mode (start dsmc, then enter commands from
the "tsm>" prompt), the quotes are not necessary, but using them is not
wrong. The quotes are not the problem.

Check the following:

- What file space are these files backed up in? If you use the
virtualmountpoint option, of if this file space name matches the beginning
of another file space name (e.g., the file space is /calstovee but you also
have another file space named /calstovee/ppslogs) then you need to put
braces around the file space name you are restoring from. For example, dsmc
restore "{/calstovee}/ppslogs/mxmstr/mail/*.2010122"

- The string you have says you want to restore files in the ../mail
directory that end with ".2010122", with no characters following those
numbers. For example, the following would be included:

   ../mail/file1.2010122
   ../mail/myfile.2010122

but the following would not be included:

   ../mail/myfile2010122
   ../mail/yourfile2010122abc

and unless you have SUBDIR YES in the options file, it will not include:

   ../mail/somedir/file1.2010122

- Also use more generic "dsmc query backup" commands without PIT filtering
just to make sure you can find any files at all that match the needed
specification.

Best regards,

Andy Raibeck
IBM Software Group
Tivoli Storage Manager Client Product Development
Level 3 Team Lead
Internal Notes e-mail: Andrew Raibeck/Hartford/IBM@IBMUS
Internet e-mail: storman AT us.ibm DOT com

IBM Tivoli Storage Manager support web page:
http://www.ibm.com/support/entry/portal/Overview/Software/Tivoli/Tivoli_Storage_Manager

"ADSM: Dist Stor Manager" <ADSM-L AT vm.marist DOT edu> wrote on 2011-03-10
10:44:18:

> From: "Hughes, Timothy" <Timothy.Hughes AT OIT.STATE.NJ DOT US>
> To: ADSM-L AT vm.marist DOT edu
> Date: 2011-03-10 10:45
> Subject: restore  string syntax question (solaris)
> Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT vm.marist DOT edu>
>
> Question,
>
> If I only wanted to restore files in a directory that contain the
> string in their name "2010122 with the date 12/20/2010 is this correct?
>         restore  "/calstovee/ppslogs/mxmstr/mail/*.2010122"  -
> pitdate=12/20/2010 -ina
> and do I really need the quotes as the manual show because it's not
working
>
> tsm> restore  "/calstovee/ppslogs/mxmstr/mail/*.2010122" -
> pitdate=12/20/2010  -pick -ina
> Restore function invoked.
> ANS1302E No objects on server match query
>
>
> Haven't done a restore like this before, I am mainly concerned about
> the string syntax as I am fairly sure the rest of the command is correct
>
> fy.i - unable to use gui for this and I am trying to do more command
> line stuff as someone said
>
> Thanks