Veritas-bu

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

2006-03-30 11:15:31
Subject: [Veritas-bu] command-line way to get vol_id from filespec and date range?
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Thu, 30 Mar 2006 09:15:31 -0700
bpflist will give you files in a backupid.

-M

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Austin
Murphy
Sent: Wednesday, March 29, 2006 12:42 PM
To: Rob Haig
Cc: Veritas-bu AT mailman.eng.auburn DOT 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 <Client Name>

Foreach media id returned, lookup the images on it:

  bpimmedia -L -media <media ID>

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 <rhaig AT renewdata DOT com> 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 AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu


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