RE: [Veritas-bu] command-line way to get vol_id from filespec and date range?

2006-03-30 Thread Mark.Donaldson



As far 
as I know, there's no good way to do this without mining the database files 
directly.
 
"bpimagelist -media" will give you most of this, it'll tell you what 
tapes were used for a policy, client, time-range, etc.  Long listing of 
simply "bpimagelist" will do the same if you parse the FRAG lines for tape info 
(note: an image can span tapes so fragments for an image can be on more than one 
tape.  Fragments themselves don't seem to span tapes).
 
Once 
you add "file-spec" to the "what tape is my backup on", things get messy 
fast.
 
-M

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]On Behalf Of Rob 
  HaigSent: Wednesday, March 29, 2006 8:29 AMTo: 
  Veritas-bu@mailman.eng.auburn.eduSubject: [Veritas-bu] command-line 
  way to get vol_id from filespec and date range?
  
  I’m trying to determine through a 
  command-line interface what piece of media a file is on given a hostname, 
  file-spec, and date range.
   
  I suspect I’ll have to start with 
  a backup_id and get the media_id from that with bpimmedia or something like 
  that.  I’m not shy of scripting, and given a backup_id 
  (hostname_timestamp) I can derive the piece(s) of media it is on.  I just 
  don’t know how to go from the date-range and filespec to the 
  backup_id.
   
  thx
   
   
   
   
  Confidentiality Notice: This electronic communication 
  contained in this e-mail from Rob Haig (including any attachments) may contain 
  privileged and/or confidential information. This communication is intended 
  only for the use of indicated e-mail addressees. Please be advised that any 
  disclosure, dissemination, distribution, copying, or other use of this 
  communication or any attached document other than for the purpose intended by 
  the sender is strictly prohibited. If you have received this communication in 
  error, please notify the sender immediately by reply e-mail and promptly 
  destroy all electronic and printed copies of this communication and any 
  attached document. Thank you in advance for your 
cooperation.


RE: [Veritas-bu] command-line way to get vol_id from filespec and date range?

2006-03-30 Thread Mark.Donaldson
bpflist will give you files in a backupid.

-M

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Austin
Murphy
Sent: Wednesday, March 29, 2006 12:42 PM
To: Rob Haig
Cc: Veritas-bu@mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] command-line way to get vol_id from filespec
and date range?


If you have the Date Range and Client name, try this:

  bpmedialist -media -U -d mm/dd/yy -e mm/dd/yy -client 

Foreach media id returned, lookup the images on it:

  bpimmedia -L -media 

It's funny you mention this, because I would like to know how to get
the list of files in a backup image.  I usually end up loading too
many tapes for a restore.

Austin


On 3/29/06, Rob Haig <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm trying to determine through a command-line interface what piece of media
> a file is on given a hostname, file-spec, and date range.
>
>
>
> I suspect I'll have to start with a backup_id and get the media_id from that
> with bpimmedia or something like that.  I'm not shy of scripting, and given
> a backup_id (hostname_timestamp) I can derive the piece(s) of media it is
> on.  I just don't know how to go from the date-range and filespec to the
> backup_id.

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


Re: [Veritas-bu] command-line way to get vol_id from filespec and date range?

2006-03-29 Thread Austin Murphy
If you have the Date Range and Client name, try this:

  bpmedialist -media -U -d mm/dd/yy -e mm/dd/yy -client 

Foreach media id returned, lookup the images on it:

  bpimmedia -L -media 

It's funny you mention this, because I would like to know how to get
the list of files in a backup image.  I usually end up loading too
many tapes for a restore.

Austin


On 3/29/06, Rob Haig <[EMAIL PROTECTED]> wrote:
>
>
>
> I'm trying to determine through a command-line interface what piece of media
> a file is on given a hostname, file-spec, and date range.
>
>
>
> I suspect I'll have to start with a backup_id and get the media_id from that
> with bpimmedia or something like that.  I'm not shy of scripting, and given
> a backup_id (hostname_timestamp) I can derive the piece(s) of media it is
> on.  I just don't know how to go from the date-range and filespec to the
> backup_id.

___
Veritas-bu maillist  -  Veritas-bu@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu