Forum Discussion

RLeon's avatar
RLeon
Level 6
13 years ago

Open file backups, VSS snapshots and bpstart_notify scripts

Hi all, This query is mainly for Windows, but may possibly apply to *nix platforms. If a drive (say drive E:\), is to be VSS snapshotted and backed up, is this snapshot created BEFORE O...
  • Mark_Solutions's avatar
    13 years ago

    If you wanted to disable VSS being used at all then yes you would have to set nothing to be used in the Master Servers host properties - having said that even if you did that it would still use it if you were backing up the Shadow Copy Components as it has to!

    Unless someone else comes up with a better idea then I think you will be a sad NetBackup Admin!

    Of course you could use a little trick ....

    Two policies created - the one you really want plus one that backups up a text file on its C drive

    The main one has schedules but no open windows so never runs on its own

    The new text file one has a bpstart_notify.textpolicyname.bat that stops you processes and then calls your backup using the bpbackup command (no need to use  a -w, just let it fire it off), wait for a period of time to let the snapshot complete and then put run your final processes.

    Note quite sure how you will get the timing perfect for all of this - what if your main job is in a queue waiting to start?

    Perhaps you could have its own bpstart_notify.mainpolicyname.bat pipe to a text file for each stream and the first one keep checking for when stream 2 appears (which is when the snapshot will have completed)?

    An entry such as:

    @echo number %stream_number% >> "c:\program files\veritas\netbackup\bin\bpstart.log"
     @echo count %stream_count% >> "c:\program files\veritas\netbackup\bin\bpstart.log"
     @echo pid %stream_pid% >> "c:\program files\veritas\netbackup\bin\bpstart.log"
     @echo ============================================== >> "c:\program files\veritas\netbackup\bin\bpstart.log"

    Would create a text file that looks like this:

    number 1

    count 3

    pid 1844

    ==============================================

    number 2

    count 3

    pid 6148

    ==============================================

    A bit of a workaround I know but should work

    Sorry it is not great - maybe someone else will have a "neater" way of doing it