Operating System - HP-UX
1834152 Members
2549 Online
110064 Solutions
New Discussion

post execution on SAM backup

 
SOLVED
Go to solution
Bala_8
Frequent Advisor

post execution on SAM backup

hi,

currently i'm doing backup of my servers using automated sam backups ...

is there any provision to execute some scripts or commands after the completion of the backup just like post_exec scripts in Omniback .... Or is there any sam backup scripts where i can add in commands/scripts to execute ....

how to i handle the exit code of SAM backup ... ie based on the success or failure of the sam backup, i want to execute some commands/ scripts for house keeping ....

pls advice ....

regards
-bala-
5 REPLIES 5
Darren Prior
Honored Contributor

Re: post execution on SAM backup

Hi Bala,

I'd consider writing your own scripts for the whole backup, including your post_exec stuff.

The SAM backup script is just a wrapper for fbackup, so armed with the man page for fbackup it should be fairly easy to script what you need to do.

regards,

Darren.
Calm down. It's only ones and zeros...
Bala_8
Frequent Advisor

Re: post execution on SAM backup

Thanks Darren,

This is what exactly i'm informing my boss for a long period. But he don't want to disturb the existing backup procedure and still want me to explore possibilities of altering SAM backup.

cheers
-bala-
Michael Tully
Honored Contributor
Solution

Re: post execution on SAM backup

Hi bala,

Check out this 'fbackup' script. Hopefully you can place it on a test server. Works me for, have used it for a long time and still do on one particular production server.

HTH
Michael
Anyone for a Mutiny ?
Balaji N
Honored Contributor

Re: post execution on SAM backup

hi,
as already suggested above try using a wrapper script to call fbackup / br_backup.
if that is not possible and u want to use only the sam's backup, try this. ( this thought just occured to my mind and not sure if it will work.)

after every backup, there is an option of sending a mail to a specific user. using procmail, u can process this mail and then run a custom script.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Bala_8
Frequent Advisor

Re: post execution on SAM backup

Thanks Michael & Balaji ....

i'll modify the scripts of Michael .....

cheers
-bala-