10-30-2013 01:01 PM
Hi,
Is there a way to ASSIGN a Calendar-based Full Backup schedule (created using bpschedule command) to a NetBackup 7.5 policy in Linux?
Here's additional info:
I have a lot of backup policies to be executed on different days of week (Monday - Sunday). Instead of configuring each of the policy's schedule individually (using bpplsched / bpplschedrep), I woud like to create 7 precofigured schedules using bpschedule (Monday_Sched ... Sunday_Sched) and assign them to the policies.
I thought the following command would accomplish that:
bpplsched <policy_name> -add <sched_label>
but the "-add" option turned out to be more like "create completely new schedule" rather than "assign existing schedule to policy".
Please help. Thanks in advance.
Alex
Solved! Go to Solution.
10-30-2013 02:10 PM
wait, wrong command!
bpschedule – add, delete, or list disk staging storage unit (DSSU) schedules
you want to use
bpplsched – add, delete, or list NetBackup schedules
( the latter requires policy name as an argument )
>>I wanted to find a way to PRECONFIGURE a schedule
you can write a script which contains the common parts while you fill in the unique parts, like policy name
10-30-2013 01:36 PM
What do you mean by assign existing schedule to policy?
Schedules in other policies have no link to other policies - they are completely independant.
You would have to add a new schedule if you wanted it in a specific policy.
10-30-2013 02:01 PM
When I create a schedule using the bpschedule command, it creates a new stand-alone schedule, not associated with any policies. So, I thought there must be a way to "assign" it to a policy or multiple policies. The question is whether I can do it or not?
I have dozens of policies to be run on similar/identical schedules (Calendar-based, weekday Monday, window 0100-2300, ST FULL, RL 3). I will be introducing more policies in the future. Instead of creating new "policy schedules" and configuring each one of them manually for each policy using the bpplsched or bpplschedrep, I wanted to find a way to PRECONFIGURE a schedule, that I can keep assigning to current and/or future policies. I have to do everything from the command line.
Thanks for the reply.
Alex
10-30-2013 02:10 PM
wait, wrong command!
bpschedule – add, delete, or list disk staging storage unit (DSSU) schedules
you want to use
bpplsched – add, delete, or list NetBackup schedules
( the latter requires policy name as an argument )
>>I wanted to find a way to PRECONFIGURE a schedule
you can write a script which contains the common parts while you fill in the unique parts, like policy name
10-30-2013 02:32 PM
I first want to create a generic/basic schedule (stand-alone, not associated with a policy)
bpschedule -add Monday_S -cal 1 -weekday Monday 1 -st FULL -rl 3
That way when I create a new policy, I can simply assign THIS schedule to the new policy. Is that possible?
I don't want to be configuring each policy manually using bpplsched, since I am dealing with dozens of policies at a time.
Yes, it can be scripted, but my goal is to create all the necessary schedules ahead of time and reuse them for new policies.
10-30-2013 02:45 PM
Unfortunately you can't do that, as previously mentioned. Schedules are unique to their policies.
You can't create a schedule then assign it to multiple policies, it doesn't work like that.
10-30-2013 04:26 PM
Consider to copy new policy from pre-configured policy with schedules using "bppolicynew <policy_name> -sameas <base_policy>" and then modify new policy as you like.
10-31-2013 04:33 AM
Or, if you're not averse to using the GUI, create a generic policy with your 'template' schedules then just right-click copy & paste into their appropriate policies.
11-01-2013 02:25 PM
revaroo: Thanks for the answer!
others: Thanks for the useful suggestions!
Alex A