Veritas-bu

Re: [Veritas-bu] Trying to perform a restore with specific events/scenarios

2010-05-12 21:47:05
Subject: Re: [Veritas-bu] Trying to perform a restore with specific events/scenarios
From: Len Boyle <Len.Boyle AT sas DOT com>
To: A Darren Dunham <ddunham AT taos DOT com>, "VERITAS-BU AT mailman.eng.auburn DOT edu" <VERITAS-BU AT mailman.eng.auburn DOT edu>
Date: Thu, 13 May 2010 01:46:54 +0000
Good Evening, 


You can generate a list of files to restore in a file and pass that file as 
input to the netbackup restore command.

I believe this feature as listed below is basically the tsm -ifnewer option . 

I wonder if the netbackup folks would accept this new feature requrest.

len

-----Original Message-----
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu 
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of A Darren 
Dunham
Sent: Wednesday, May 12, 2010 4:33 PM
To: VERITAS-BU AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] Trying to perform a restore with specific 
events/scenarios

On Wed, May 12, 2010 at 03:03:55PM -0400, gbkyle wrote:
> 
> I have listed below our current scenarios and actions we would like to take 
> in the event of this scenario. I was wondering if this is possible with 
> NetBackup, or possibly even an existing tool or script.
> 
>       Scenario \      Action
> 1     0kB File on location to restore to \    Overwrite File
> 2     File on Location to Restore to Has newer modification date than that is 
> on Tape \       Do Not Overwrite
> 3     File on location to Restore to has older Modification date than that is 
> on the Tape \   Overwrite File
> 4     File Does Not Exist     \ Write File

Possible, yes.  Not sure how easy or efficient it would be.

All the information needed to make that decision can be found from
bplist/bpflist (both can show mtime from file at time of backup) and by
scanning the actual filesystem.  You could have a script look at the
catalog and the filesystem and create a list of files that you want to
restore, and make the restore overwrite unconditionally.

That part seems reasonable, but parsing the stuff from the catalog would
take a bit of work.  The thing I don't know is how well NBU would deal
at the end with a restore request and a file listing with *lots* of
files.  Assuming that part is fine, this is doable.

Good luck!

-- 
Darren
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu