04-07-2020 06:23 AM
Hello Community ^^,
I have done a script to change a Schedule of Many Policy who have approximatively the same Name.
This part is ok, i'm using at the end, the command line .\bpplschedwin.
With a Schedule for a Full backup it's easy to do and understand, but for an Incremental Backup, I don't know if we can use this command for ?
For example, my config file of Schedule is :
SCHED Incr 1 1 604800 1 0 0 0 *NULL* 0 0 0 0 0 0 -1 0 0 SCHEDWIN 0 0 68400 39600 68400 39600 68400 39600 68400 39600 68400 39600 0 0 SCHEDRES *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* SCHEDPOOL *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* SCHEDRL 1 1 1 1 1 1 1 1 1 1 SCHEDFOE 0 0 0 0 0 0 0 0 0 0 SCHEDSG *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL* *NULL*
So the Backup begin the Monday and end the Friday.
But 68400 s / 3600 = 19 so 19h after Midnight ?? and the other numer is 39600 /3600 = 11....?
If i look with the console NetBackup my backup begin the Monday at 00:00 to 06:00 and 19:00 to 00:00
Please explain to me how it's work for i continue my script.
Thx a lot ;)
Solved! Go to Solution.
04-07-2020 08:03 AM
The second number in the seven pairs is a duration, like you found 19:00 to 06:00 is 11 hours.
04-07-2020 08:03 AM
The second number in the seven pairs is a duration, like you found 19:00 to 06:00 is 11 hours.
04-07-2020 08:21 AM
Hello,
Yes i know, but normally the account is made since 00:00 so for 06:00 normally the first number would be 21600 and not 68400 the second yes of course.
Ah yes, it doesn't work with 0:00 but the hour of start and duration, so 68400 for the Monday evening to the tuesday morning at 06:00 so 39600.
I have understand, you hlp to think.
Thx
04-07-2020 08:31 AM - edited 04-07-2020 08:33 AM
The clue is in the fact that they are in seven pairs. And the values are "seven days of seconds".
So what you yourself see as two time frames of one schedule event, of for example Monday 19:00 to midnight and midnight to Tuesday 06:00, is not actually how it is stored... it is stored as an one offset (of a point in time within a week, expressed in seconds) and one duration (of up to one week, expressed in seconds) - and there can be seven of these pairs of numbers.
04-07-2020 01:55 PM
Yes i know but, i was suprise with this numbers, who speak well to me with Full Schedules but not in with full Schedules.
It will be more tricky to script in Incremental.
Thx anyway, as i said you had helped me to think ;)