want to run backup on first monday of each month
netbackup 3.2 solaris master server
netapp w/ndmp tape library attached
Their appears to be some lacking granularity in the netbackup schedule
system. I am new to netbackup and just wondering if I want to kick off a
backup on the first monday of everymonth will I end up doing this with cron?
I guess I am just looking for any advice/suggestions from people who have
gone down the path already.
TIA . Derek.
Re: want to run backup on first monday of each month
Hi,
I am agree with you, the scheduler of NetBackup is not really relevant.
I had this problem. In next months we will have TNG so we will use the nice
scheduler of TNG which is really impressive to launch backup jobs. But for
the moment we made scripts to chage the frequency of the backup. I explain
:
I have several schedules : incr_daily, full_weekly, full_monthly
the frequency of a full weekly is days, for a full monthly it is 54 weeks.
When we want to have a monthly backup (wich have a higher retention time
then the full weekly) I change by a script (using configuration files) the
frequency of the full_monthly and full_weekly.
It works.
I will have a look to give you the command to change the frequency.
Laurent.
<qsen001@attglobal.net> wrote:[color=blue]
>netbackup 3.2 solaris master server
>netapp w/ndmp tape library attached
>
>Their appears to be some lacking granularity in the netbackup schedule
>system. I am new to netbackup and just wondering if I want to kick off[/color]
a[color=blue]
>backup on the first monday of everymonth will I end up doing this with cron?
>I guess I am just looking for any advice/suggestions from people who have
>gone down the path already.
> TIA . Derek.
>
>[/color]
Re: want to run backup on first monday of each month
Hello Laurent,
What is TNG and how can it be used to enhance the NetBackup scheduler? I
also want to be able to control backups based on first Friday, last Friday
etc; I figured I had to do some scripting but am still a little fuzzy on
how to accomplish that. I could sure use an example or two if you've got
one to spare. When I find out what TNG is (and who markets it) I will pursue
it as well.
Regards,
Dennis Dwyer
Enterprise Storage Administrator
Tampa Electric Company
"Laurent Stirnemann" <lstirnemann@efa.lu> wrote:[color=blue]
>
> Hi,
>
> I am agree with you, the scheduler of NetBackup is not really relevant.
>
> I had this problem. In next months we will have TNG so we will use the[/color]
nice[color=blue]
>scheduler of TNG which is really impressive to launch backup jobs. But for
>the moment we made scripts to chage the frequency of the backup. I explain
>:
>
> I have several schedules : incr_daily, full_weekly, full_monthly
>
> the frequency of a full weekly is days, for a full monthly it is 54 weeks.
> When we want to have a monthly backup (wich have a higher retention time
>then the full weekly) I change by a script (using configuration files) the
>frequency of the full_monthly and full_weekly.
>
> It works.
>
> I will have a look to give you the command to change the frequency.
>
> Laurent.
>
>
>
><qsen001@attglobal.net> wrote:[color=green]
>>netbackup 3.2 solaris master server
>>netapp w/ndmp tape library attached
>>
>>Their appears to be some lacking granularity in the netbackup schedule
>>system. I am new to netbackup and just wondering if I want to kick off[/color]
>a[color=green]
>>backup on the first monday of everymonth will I end up doing this with[/color][/color]
cron?[color=blue][color=green]
>>I guess I am just looking for any advice/suggestions from people who have
>>gone down the path already.
>> TIA . Derek.
>>
>>[/color]
>[/color]
Re: want to run backup on first monday of each month
Hi,
Well TNG is a huge software (like patrol) from Computer Associate, which
many many functionalities, workload, event manager for Unix, NT etc ...
TNG is very expensive moreover if you just use the scheduler which is definitively
amazing.
If you don't have this software or the equivalent from other company the
only solution that I would see is to use script.
I have many scripts (to inject, insert tape, alerts, duplication ...) and
one is for monthly backup. I will help you to carry out with this point.
I will sen you some commands and clues, but I need to know which server is
your master, because ours is a Solaris one, and the commands that I used
works on Unix system.
Regards.
Laurent.
"Dennis Dwyer" <dfdwyer@tecoenergy.com> wrote:[color=blue]
>
>Hello Laurent,
>
>What is TNG and how can it be used to enhance the NetBackup scheduler? I
>also want to be able to control backups based on first Friday, last Friday
>etc; I figured I had to do some scripting but am still a little fuzzy on
>how to accomplish that. I could sure use an example or two if you've got
>one to spare. When I find out what TNG is (and who markets it) I will pursue
>it as well.
>
>Regards,
>Dennis Dwyer
>Enterprise Storage Administrator
>Tampa Electric Company
>
>"Laurent Stirnemann" <lstirnemann@efa.lu> wrote:[color=green]
>>
>> Hi,
>>
>> I am agree with you, the scheduler of NetBackup is not really relevant.
>>
>> I had this problem. In next months we will have TNG so we will use the[/color]
>nice[color=green]
>>scheduler of TNG which is really impressive to launch backup jobs. But[/color][/color]
for[color=blue][color=green]
>>the moment we made scripts to chage the frequency of the backup. I explain
>>:
>>
>> I have several schedules : incr_daily, full_weekly, full_monthly
>>
>> the frequency of a full weekly is days, for a full monthly it is 54 weeks.
>> When we want to have a monthly backup (wich have a higher retention time
>>then the full weekly) I change by a script (using configuration files)[/color][/color]
the[color=blue][color=green]
>>frequency of the full_monthly and full_weekly.
>>
>> It works.
>>
>> I will have a look to give you the command to change the frequency.
>>
>> Laurent.
>>
>>
>>
>><qsen001@attglobal.net> wrote:[color=darkred]
>>>netbackup 3.2 solaris master server
>>>netapp w/ndmp tape library attached
>>>
>>>Their appears to be some lacking granularity in the netbackup schedule
>>>system. I am new to netbackup and just wondering if I want to kick off[/color]
>>a[color=darkred]
>>>backup on the first monday of everymonth will I end up doing this with[/color][/color]
>cron?[color=green][color=darkred]
>>>I guess I am just looking for any advice/suggestions from people who have
>>>gone down the path already.
>>> TIA . Derek.
>>>
>>>[/color]
>>[/color]
>[/color]
Re: want to run backup on first monday of each month
[email]qsen001@attglobal.net[/email] wrote:[color=blue]
>
> netbackup 3.2 solaris master server
> netapp w/ndmp tape library attached
>
> Their appears to be some lacking granularity in the netbackup schedule
> system. I am new to netbackup and just wondering if I want to kick off a
> backup on the first monday of everymonth will I end up doing this with cron?[/color]
NetBackup scheduler is still only frequency based. if you want to
schedule jobs on precise date, like the 1st of the month, then
you should do a manual backup (bpbackup -i ...) from some other
scheduler, cron fe.
fx
--
[email]fx@4js.com[/email] | Three things are certain:
François-Xavier Peretmere | Death, taxes and lost data
[url]http://www.4js.com/[/url] | Guess which has occurred.
Re: want to run backup on first monday of each month
Hi,
The probem by using the cron to launch backup job it is that you can have
conflict with backup launched by the scheduler.
As the retentions should be different, you may have a lot of backup errors.
Or you have to change the frequency of your scheduled backups to avoid problem.
Is there any solution ?
Laurent
fx <fx@4js.com> wrote:[color=blue]
>qsen001@attglobal.net wrote:[color=green]
>>
>> netbackup 3.2 solaris master server
>> netapp w/ndmp tape library attached
>>
>> Their appears to be some lacking granularity in the netbackup schedule
>> system. I am new to netbackup and just wondering if I want to kick off[/color][/color]
a[color=blue][color=green]
>> backup on the first monday of everymonth will I end up doing this with[/color][/color]
cron?[color=blue]
>
> NetBackup scheduler is still only frequency based. if you want to
>schedule jobs on precise date, like the 1st of the month, then
>you should do a manual backup (bpbackup -i ...) from some other
>scheduler, cron fe.
>
> fx
>
>--
> [email]fx@4js.com[/email] | Three things are certain:
>François-Xavier Peretmere | Death, taxes and lost data
> [url]http://www.4js.com/[/url] | Guess which has occurred.[/color]
Re: want to run backup on first monday of each month
Laurent,
I run two Sun E450 servers as Masters (no Media servers) and they have Solaris
2.6 and NetBackup 3.2 installed. TNG sounds very robust but my experience
with CA is it's probably not too cheap either. I doubt that I could build
a case to acquire it based on the scheduling piece alone. I would certainly
appreciate any information on the scripts that you could throw my way. You
can send them to this e-mail address:
[email]dfdwyer@tecoenergy.com[/email]
I'm fairly new to NetBackup and servers (I come from a Mainframe storage
amangement environment) but I'm learning new stuff everyday and really enjoying
the hectic pace. I am attending the Veritas Vssion 2000 conference at the
end of the month and hope to pick up lots of info there.
Regards,
Dennis Dwyer
Enterprise Storage Manager
Tampa Electric Company
"Laurent Stirnemann" <lstirnemann@efa.lu> wrote:[color=blue]
>
> Hi,
>
> Well TNG is a huge software (like patrol) from Computer Associate, which
>many many functionalities, workload, event manager for Unix, NT etc ...[/color]
[color=blue]
>TNG is very expensive moreover if you just use the scheduler which is definitively
>amazing.
>
>If you don't have this software or the equivalent from other company the
>only solution that I would see is to use script.
>I have many scripts (to inject, insert tape, alerts, duplication ...) and
>one is for monthly backup. I will help you to carry out with this point.
>I will sen you some commands and clues, but I need to know which server[/color]
is[color=blue]
>your master, because ours is a Solaris one, and the commands that I used
>works on Unix system.
>
>Regards.
>
>Laurent.
>
>
>"Dennis Dwyer" <dfdwyer@tecoenergy.com> wrote:[color=green]
>>
>>Hello Laurent,
>>
>>What is TNG and how can it be used to enhance the NetBackup scheduler?[/color][/color]
I[color=blue][color=green]
>>also want to be able to control backups based on first Friday, last Friday
>>etc; I figured I had to do some scripting but am still a little fuzzy on
>>how to accomplish that. I could sure use an example or two if you've got
>>one to spare. When I find out what TNG is (and who markets it) I will pursue
>>it as well.
>>
>>Regards,
>>Dennis Dwyer
>>Enterprise Storage Administrator
>>Tampa Electric Company
>>
>>"Laurent Stirnemann" <lstirnemann@efa.lu> wrote:[color=darkred]
>>>
>>> Hi,
>>>
>>> I am agree with you, the scheduler of NetBackup is not really relevant.
>>>
>>> I had this problem. In next months we will have TNG so we will use the[/color]
>>nice[color=darkred]
>>>scheduler of TNG which is really impressive to launch backup jobs. But[/color][/color]
>for[color=green][color=darkred]
>>>the moment we made scripts to chage the frequency of the backup. I explain
>>>:
>>>
>>> I have several schedules : incr_daily, full_weekly, full_monthly
>>>
>>> the frequency of a full weekly is days, for a full monthly it is 54 weeks.
>>> When we want to have a monthly backup (wich have a higher retention time
>>>then the full weekly) I change by a script (using configuration files)[/color][/color]
>the[color=green][color=darkred]
>>>frequency of the full_monthly and full_weekly.
>>>
>>> It works.
>>>
>>> I will have a look to give you the command to change the frequency.
>>>
>>> Laurent.
>>>
>>>
>>>
>>><qsen001@attglobal.net> wrote:
>>>>netbackup 3.2 solaris master server
>>>>netapp w/ndmp tape library attached
>>>>
>>>>Their appears to be some lacking granularity in the netbackup schedule
>>>>system. I am new to netbackup and just wondering if I want to kick[/color][/color][/color]
off[color=blue][color=green][color=darkred]
>>>a
>>>>backup on the first monday of everymonth will I end up doing this with[/color]
>>cron?[color=darkred]
>>>>I guess I am just looking for any advice/suggestions from people who[/color][/color][/color]
have[color=blue][color=green][color=darkred]
>>>>gone down the path already.
>>>> TIA . Derek.
>>>>
>>>>
>>>[/color]
>>[/color]
>[/color]
Re: want to run backup on first monday of each month
Laurent Stirnemann wrote:
[color=blue]
> The probem by using the cron to launch backup job it is that you can have
> conflict with backup launched by the scheduler.[/color]
not sure i understand. as soon as the backup is fired, it goes to
the queue, waiting for its storage unit to become active. there is
no "conflict"?
[color=blue]
> As the retentions should be different, you may have a lot of backup errors.[/color]
why errors?? it's a normal backup using the same processing as a backup
fired by the scheduler. if the retention of this schedule is different,
then you need a tape with this retention. but again, nothing particular
here.
[color=blue]
> Or you have to change the frequency of your scheduled backups to avoid problem.
> Is there any solution ?[/color]
hum. i'm afraid i don't understand what you mean.
fx
--
[email]fx@4js.com[/email] | Three things are certain:
François-Xavier Peretmere | Death, taxes and lost data
[url]http://www.4js.com/[/url] | Guess which has occurred.
Re: want to run backup on first monday of each month
[color=blue]
> Their appears to be some lacking granularity in the netbackup
> schedule system. I am new to netbackup and just wondering if
> I want to kick off a backup on the first monday of every month
> will I end up doing this with cron?[/color]
I faced a similar problem where we needed to run a full backup at the end
of the month in addition to the weekly full backups. What I wound up doing
was setting up a cron job to run a script at the first of every month ahead
of the normally scheduled backups.
The script would save the existing schedules to files, zero out the schedules
and then pick out the time range for the weekly backup and create a new schedule
for each client with that time range for that night. After the backup is
all done the saved schedules are restored.
It's an ugly way to do it but it has been working for us since April.
Sean D.
Re: want to run backup on first monday of each month
"Sean D." wrote:[color=blue]
>[color=green]
> > Their appears to be some lacking granularity in the netbackup
> > schedule system. I am new to netbackup and just wondering if
> > I want to kick off a backup on the first monday of every month
> > will I end up doing this with cron?[/color]
>
> I faced a similar problem where we needed to run a full backup at the end
> of the month in addition to the weekly full backups. What I wound up doing
> was setting up a cron job to run a script at the first of every month ahead
> of the normally scheduled backups.
>
> The script would save the existing schedules to files, zero out the schedules
> and then pick out the time range for the weekly backup and create a new schedule
> for each client with that time range for that night. After the backup is
> all done the saved schedules are restored.
>
> It's an ugly way to do it but it has been working for us since April.[/color]
yes it is. just create a schedule for the first of the month but *without
any start window*. and use "bpbackup -i" in the cron job that run the first
of the month.
to answer the first question, you'll end up with cron. NetBackup scheduler
is only frequency based, not calendar. version 4.0 *should* be both.
--
fx
Re: want to run backup on first monday of each month
[QUOTE=unix;1388976]netbackup 3.2 solaris master server
netapp w/ndmp tape library attached
Their appears to be some lacking granularity in the netbackup schedule
system. I am new to netbackup and just wondering if I want to kick off a
backup on the first monday of everymonth will I end up doing this with cron?
I guess I am just looking for any advice/suggestions from people who have
gone down the path already.
TIA . Derek.[/QUOTE]
I'm not sure if you already got a reply for this; but here's a KSH script that may help.
(Modify it according to your needs:)
#!/bin/ksh
#============================================================#
# Author : Derek Figueira
# Purpose: Determine whether today should run a MONTHLY, WEEKLY, or DAILY job.
#
#============================================================
TODAY=`date +"%a"` # Ddd eg: Mon Tue Wed Thu Fri Sat Sun
DAYNUMBER=`date +"%d"` # nn eg: 01 - 31
#-----------------------------------------------------------------#
# The following logic will run only 1 of the 3 jobs.
#
#-----------------------------------------------------------------#
if [[ $TODAY = "Fri" ]] && (( $DAYNUMBER <= 07 ))
then echo "MONTHLY: Runs on the first FRIDAY of every month"
savegrp -F -G Monthly_bkup
elif
[[ $TODAY = "Fri" ]]
then echo "WEEKLY : Runs every FRIDAY"
savegrp -F -G Weekly_bkup
elif
[[ $TODAY != "Fri" ]]
then echo "DAILY : Runs every day EXCEPT FRIDAY"
savegrp -F -G Daily_bkup
exit