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
|