mksysb script

From: Pipiron (pipiron0309_at_yahoo.com)
Date: 06/13/03


Date: Fri, 13 Jun 2003 15:01:23 +0200

Dear colleagues,

I should schedule mksysb on AIX 4.3.3 machine every day at the same time.
Also should have record in a log file about backup and status of backup. So
I made following script:

bkup_ skripta

#!/bin/ksh
mv /tmp/bkup/mksysb.log /tmp/bkup/YYYYMMDD.mksysb.log
/usr/bin/mksysb -i /dev/rmt0
mt -f /dev/rmt0 rewoffl

In Cron

1) crontab -e
2) 22 05 * * 1,2,3,4,5 /tmp/bkup/bkup_ skripta>> /tmp/bkup/mksysb.log > 2&1

This last line in Cron should report error if occurs. But, all the time I
have logs with nothing in it (size 0), even if error occurs.
Now I am not a guru for scripting, so I would really appreciate if someone
can help me about following:
how can I have logs with status of backup in it. That means I should have
something like

20030625.mksysb.log and in it either "Backup finished successfully" either
"Backup finished with errors"

Thanks in advance

PJ



Relevant Pages

  • RE: Performance Report & backup log
    ... I am glad to know the report is correct now after you delete the backup ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... <<Server\Support\Backup Logs ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange log files growing
    ... I didn't want to mention the capacity issue until the exchange log issue was ... backup with the excluded data may exceed the cost of biting the bullet now. ... Les Connor [SBS Community Member - SBS MVP] ... I also dig out other old logs when I touch a server. ...
    (microsoft.public.windows.server.sbs)
  • Re: Logs not flushing
    ... Definitely doing a full backup each night (flush committed logs). ... Information Store NGS Storage Group: Beginning the backup of the file ...
    (microsoft.public.exchange.admin)
  • Re: Exchange log files growing
    ... Personally i would delete all the logs from 3/10 and 4/10. ... What do you think about the B/U Exec for SBS? ... Is it inferior to SBS Backup? ... the Exchange log files are growing (over 300 log files in the MDBData ...
    (microsoft.public.windows.server.sbs)
  • Re: Exchange Server Error 9175
    ... I have a backup solution back in place now and the logs are clearing now as ... You need to start by solving the backup issue. ... A full backup of the exchange information store with an exchange aware ...
    (microsoft.public.exchange.admin)