Ben
This is a good candidate for the new(ish) filelist option
find /image_data50/*/05 -name "*.tar" > /tmp/filelist
dsmc restore -filelist
HTH
Steve Harris
AIX and TSM Admin
Queensland Health, Brisbane Australia
>>> bbullock AT MICRON DOT COM 04/02/2004 1:51:27 >>>
Hmm, I was afraid of that...
That snippet from the manual is indeed what I am seeing, but I
find it interesting that the "q backup..." command will return the list
of files, but the "restore..." will fail with the same file spec. You
would think (hope) that they would behave the same.
Luckily, shortly after I sent the e-mail I realized that the
actual file names that the developers were using were named after the
path that the file was in. So, I'm able to do the restore running a
command like this:
dsmc restore /image_data01/*-05.tar -inactive=yes -subdir=yes
But still, if these files were not named in this way, it looks
like I would not be able to restore them with a simple command. You
can't "restore certain files only from sub-directories with a certain
name"
Live and learn...
Ben
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Richard Sims
Sent: Tuesday, February 03, 2004 5:53 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: Restore command help...
...
>I can get this command to show me what is backed up:
> q backup /image_data50/*/05/*.tar -inactive=yes -subdir=yes
>
>But when I change it to a restore command, I get this:
> tsm> restore '/image_data50/*/05/*.tar' -inactive=yes
-subdir=yes
> Restore function invoked.
>
>ANS1081E Invalid search file specification '/image_data50/*/05/*.tar'
>entered
...
Ben - This morning I better see what the problem may be...
Chapter 10 of the Unix client manual (Using commands) specifies:
"In a command, you can use wildcard characters in the file name or file
extension only. You cannot use them to specify destination files, file
systems, or directories."
In your case, no "To" spec was in force, so the source and destination
were the same.
Richard Sims, http://people.bu.edu/rbs
***********************************************************************************
This email, including any attachments sent with it, is confidential and for the
sole use of the intended recipients(s). This confidentiality is not waived or
lost, if you receive it and you are not the intended recipient(s), or if it is
transmitted/received in error.
Any unauthorised use, alteration, disclosure, distribution or review of this
email is prohibited. It may be subject to a statutory duty of confidentiality
if it relates to health service matters.
If you are not the intended recipients(s), or if you have received this e-mail
in error, you are asked to immediately notify the sender by telephone or by
return e-mail. You should also delete this e-mail message and destroy any hard
copies produced.
***********************************************************************************
|