If you create a file in /usr/openv/netbackup/bin named bpstart_notify, it
will be executed before the backing up of the data starts. A file named
bpend_notify will run after the data has been buffered to be written to
tape,
There are two caveats:
1) The list of mount points to be backed will have already been
determined before bpstart_notify is called, so keep that in mind. You can
specify the mount point in the files section of the class definition (as
opposed to ALL_LOCAL_DRIVES), in which case you shouldn't have a problem.
2) If you call the file bpstart_notify than all backups running on that
client will call the script. To avoid this, specify bpstart_notify.classname
if you want the script to only run for certain schedules then,
bpstart_notify.classname.schedulename. (This applies to bpend_notify as
well). An example of bpstart_notify and bpend_notify can be found in
/usr/openv/netbackup/bin/goodies directory, and they are discused in the
Systems Administrators Guide as well.
Good Luck,
Patrick Whelan
Consulting
[NBU (with extensions) and Storage Migrator for UNIX]
[VxFS and Volume Manager]
pwhelan AT veritas DOT com
"Of course this is just my opinion, I could be wrong." - Dennis Miller
"Friends help friends move, good friends help move bodies" - Unknown.
"Always do right. This will gratify some people, and astonish the rest" -
Mark Twain
-----Original Message-----
From: Arthur Darren Dunham [mailto:add AT netcom DOT com]
Sent: Wednesday, July 19, 2000 5:16 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] pre- post- backup commands?
Is there a way to run a commands prior to and just after a
backup?
I'd like to mount and unmound a filesystem (basically) and
need to run
commands to do it.
We're running NB 3.2 on Solaris. The client is Solaris
also.
Thanks!
--
Darren Dunham
ddunham AT taos DOT com
Unix System Administrator Taos - The
SysAdmin Company
Got some Dr Pepper? San
Francisco Bay Area
< Please move on, ...nothing to see here, please
disperse >
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|