It would be quite nice if I could get my Wakup/Shutdown schedule in-sync with my backup software schedule. For example these are my current backup schedules:
Full Backup: Every 1st monday in month, repeating every month (currently not possible with APM)
Incremental Backup: Tuesday every 2 weeks, starting with 1st tuesday in month, repeating every month (currently not possible with APM)
Currently I am working around these schedules to wakeup the NAS every week on monday and tuesday
morning (including shutdown on monday and tuesday evening) - but as you can see the NAS is running
most of the time without doing anything - as the backup schedule is not that tight.
Monitoring the network traffic is not really possible as the NAS is mounted with iSCSI to a virtual machine
that is steadily monitoring the device.
Please come up with a date description that would suit your needs and I'll implement it.
Maybe something like "<first|second|third|fourth|fifth> <day of="" week="">".
This description must be easily understandable.
I propose something like the following (combinaisons possible):
monthly on mon 1, tue 2-4
means monthly on first monday and second to fourth tuesday jan, mar 2018 on day 5-10
means on january and march 2018, on day of month 5 to 10
Is that understandable?
Weekly Tag:
"weekly" <interval=1-52|First|Last> <days of="" week="">
Weekly 1 Mon at 08:00 => Every 1 week on Monday at 08:00
Weekly 2 Tue,Thu,Sat at 17:00 => Every 2 weeks on Tuesday and Thursday and Saturday at 17:00
Weekly First Mon at 07:23 => Every first week (of the year) on Monday at 07:23
Weekly Last Sun at 19:11 => Every last week (of the year) on Sunday at 19:11
Monthly Tag:
"monthly" <months> <interval=First|Second|Third|Fourth|Last> <days of="" week="">
Monthly Jan-Jun First Sat at 07:00 => Every first Saturday of the month January to June at 07:00
Monthly Jul,Aug,Sep,Oct,Dec Third Mon,Tue at 23:33 => Every third Monday and Tuesday of the month July to December except November at 23:33
Monthly Second Mon at 09:00 => Every second Monday of all months at 09:00
Monthly Last Sat at 02:00 => Every last Saturday of all months at 02:00
It is more a less like your example - hopefully implementable and logical at all :)
Thank you for the proposal.
Let me think deeper about a new date specification. I hope to implement it in the coming weeks, but I don't promise since I'm very busy these days.
Last edit: Renaud Métrich 2017-05-05
Hi Oliver,
I've started implementing the new regular expressions. I plan to come with the following:
With this, the following will be possible:
usual "mon-tue" or "daily"
usual full date "jan 7 2017" or "jan 7"
week X 2017 mon (monday on week X 2017)
week X,Y,A-B tue,wed (tuesday and wednesday on weeks X, Y and A to B)
yearday 5 2017 (fifth day of 2017)
monthly first tue,wed (monthly on first tuesday and wednesday)
* ...
With this, the program will be quite complete I believe.
Hi Renaud,
sounds quite complete – I’ll give the theory a try the next few days – but on a first look
you got a really nice solution in the works now 😊
Greetings,
Oliver
Von: "Renaud Métrich" [mailto:rmetrich@users.sf.net]
Gesendet: Montag, 8. Mai 2017 21:34
An: [advpowermgr4ds:feature-requests] 10@feature-requests.advpowermgr4ds.p.re.sf.net
Betreff: [advpowermgr4ds:feature-requests] #10 Schedule Terms Extensions (First monday in a month, Tuesday every 2 weeks, etc.)
Hi Oliver,
I've started implementing the new regular expressions. I plan to come with the following:
Regular expression: LIST(SPEC)
SPEC := (
week WEEKNUM_SELECTOR [ YEAR_SELECTOR ] WEEKDAY_ALL_SELECTOR
MONTH_SELECTOR MONTHDAY_SELECTOR [ YEAR_SELECTOR ]
MONTH_SELECTOR [ YEAR_SELECTOR ] WEEKDAY_ALL_SELECTOR
MONTH_SELECTOR [ YEAR_SELECTOR ] NUMERALWEEKDAY_SELECTOR
yearday YEARDAY_SELECTOR [ YEAR_SELECTOR ]
)
MONTHDAY_SELECTOR := RLIST(MONTHDAY)
MONTH_SELECTOR := ( monthly | RLIST(MONTH) )
NUMERALWEEKDAY_SELECTOR := RLIST(RLIST(NUMERAL) WEEKDAY_SELECTOR)
WEEKDAY_ALL_SELECTOR := ( daily | WEEKDAY_SELECTOR )
WEEKDAY_SELECTOR := RLIST(WEEKDAY)
WEEKNUM_SELECTOR := RLIST(WEEKNUM)
YEARDAY_SELECTOR := RLIST(YEARDAY)
YEAR_SELECTOR := RLIST(YEAR)
MONTHDAY := ( 1 .. 31 )
MONTH := ( jan | feb | mar | apr | may | jun | jul | aug | sep | oct | no
NUMERAL := ( first | second | third | fourth | fifth )
WEEKDAY := ( mon | tue | wed | thr | fri | sat | sun )
WEEKNUM := ( 1 .. 53 )
YEAR := 20[1-9][0-9]
YEARDAY := ( 1 .. 366 )
RLIST(X) := LIST(RANGE(X))
LIST(X) := X [ , X ] ...
RANGE(X) := X [ - X ]
With this, the following will be possible:
usual "mon-tue" or "daily"
usual full date "jan 7 2017" or "jan 7"
week X 2017 mon (monday on week X 2017)
week X,Y,A-B tue,wed (tuesday and wednesday on weeks X, Y and A to B)
yearday 5 2017 (fifth day of 2017)
monthly first tue,wed (monthly on first tuesday and wednesday)
* ...
With this, the program will be quite complete I believe.
[feature-requests:#10] https://sourceforge.net/p/advpowermgr4ds/feature-requests/10/ Schedule Terms Extensions (First monday in a month, Tuesday every 2 weeks, etc.)
Status: open
Group: Next_Release
Labels: Wakeup Shutdown Schedule Script
Created: Tue May 02, 2017 04:58 AM UTC by Oliver Oswald
Last Updated: Fri May 05, 2017 06:29 AM UTC
Owner: nobody
It would be quite nice if I could get my Wakup/Shutdown schedule in-sync with my backup software schedule. For example these are my current backup schedules:
Full Backup: Every 1st monday in month, repeating every month (currently not possible with APM)
Incremental Backup: Tuesday every 2 weeks, starting with 1st tuesday in month, repeating every month (currently not possible with APM)
Currently I am working around these schedules to wakeup the NAS every week on monday and tuesday
morning (including shutdown on monday and tuesday evening) - but as you can see the NAS is running
most of the time without doing anything - as the backup schedule is not that tight.
Monitoring the network traffic is not really possible as the NAS is mounted with iSCSI to a virtual machine
that is steadily monitoring the device.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/advpowermgr4ds/feature-requests/10/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Please be patient because I've just started writing the unit tests.
Then will come the actual coding.
HiOliver
I'm sorry I didn't have the time yet to implement the code.
I'm completely exhausted after the work. I hope to be able to continue during my vacations.
Hi Renaud,
no problem at all – take your time … free-time projects have a greater timeframe than business projects 😉
Greetings,
Oliver
Von: "Renaud Métrich" [mailto:rmetrich@users.sf.net]
Gesendet: Donnerstag, 29. Juni 2017 21:34
An: [advpowermgr4ds:feature-requests] 10@feature-requests.advpowermgr4ds.p.re.sf.net
Betreff: [advpowermgr4ds:feature-requests] #10 Schedule Terms Extensions (First monday in a month, Tuesday every 2 weeks, etc.)
HiOliver
I'm sorry I didn't have the time yet to implement the code.
I'm completely exhausted after the work. I hope to be able to continue during my vacations.
[feature-requests:#10] https://sourceforge.net/p/advpowermgr4ds/feature-requests/10/ Schedule Terms Extensions (First monday in a month, Tuesday every 2 weeks, etc.)
Status: open
Group: Next_Release
Labels: Wakeup Shutdown Schedule Script
Created: Tue May 02, 2017 04:58 AM UTC by Oliver Oswald
Last Updated: Mon May 15, 2017 08:12 PM UTC
Owner: nobody
It would be quite nice if I could get my Wakup/Shutdown schedule in-sync with my backup software schedule. For example these are my current backup schedules:
Full Backup: Every 1st monday in month, repeating every month (currently not possible with APM)
Incremental Backup: Tuesday every 2 weeks, starting with 1st tuesday in month, repeating every month (currently not possible with APM)
Currently I am working around these schedules to wakeup the NAS every week on monday and tuesday
morning (including shutdown on monday and tuesday evening) - but as you can see the NAS is running
most of the time without doing anything - as the backup schedule is not that tight.
Monitoring the network traffic is not really possible as the NAS is mounted with iSCSI to a virtual machine
that is steadily monitoring the device.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/advpowermgr4ds/feature-requests/10/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Feature Requests: #10
Hi Oliver,
just to let you know that backend implementation is almost complete. I still need some more testing and updating the GUI.