ADSM-L

Re: Restore command help...

2004-02-03 18:31:36
Subject: Re: Restore command help...
From: Ben Bullock <bbullock AT MICRON DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 3 Feb 2004 16:31:08 -0700
        True,
        I was thinking that since I could extract a list of files with
the "q backup" command, I could then plug them into a list and use the
"-filelist" option.
        
        My only concern with doing it that way is that according to the
docs, the restore will go through the list, file by file, with no
optimization as to the tape mounts. I am afraid that it may end up
mounting and remounting the same tapes over an over depending on how the
files are listed. 

        Ben

-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Steve Harris
Sent: Tuesday, February 03, 2004 4:09 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: Restore command help...


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.
************************************************************************
***********

<Prev in Thread] Current Thread [Next in Thread>