]> git.proxmox.com Git - pve-docs.git/blob - calendar-events.adoc
backup: clarify that CLI means FS-level and highlight retention-note
[pve-docs.git] / calendar-events.adoc
1 [[chapter_calendar_events]]
2 Schedule Format
3 ---------------
4
5 {pve} has a very flexible scheduling configuration. It is based on the systemd
6 time calendar event format.footnote:[see `man 7 systemd.time` for more information]
7 Calendar events may be used to refer to one or more points in time in a
8 single expression.
9
10 Such a calendar event uses the following format:
11
12 ----
13 [day(s)] [[start-time(s)][/repetition-time(s)]]
14 ----
15
16 This format allows you to configure a set of days on which the job should run.
17 You can also set one or more start times. It tells the replication scheduler
18 the moments in time when a job should start.
19 With this information we, can create a job which runs every workday at 10
20 PM: `'mon,tue,wed,thu,fri 22'` which could be abbreviated to: `'mon..fri
21 22'`, most reasonable schedules can be written quite intuitive this way.
22
23 NOTE: Hours are formatted in 24-hour format.
24
25 To allow a convenient and shorter configuration, one or more repeat times per
26 guest can be set. They indicate that replications are done on the start-time(s)
27 itself and the start-time(s) plus all multiples of the repetition value. If
28 you want to start replication at 8 AM and repeat it every 15 minutes until
29 9 AM you would use: `'8:00/15'`
30
31 Here you see that if no hour separation (`:`), is used the value gets
32 interpreted as minute. If such a separation is used, the value on the left
33 denotes the hour(s), and the value on the right denotes the minute(s).
34 Further, you can use `*` to match all possible values.
35
36 To get additional ideas look at
37 xref:pvesr_schedule_format_examples[more Examples below].
38
39 Detailed Specification
40 ----------------------
41
42 days:: Days are specified with an abbreviated English version: `sun, mon,
43 tue, wed, thu, fri and sat`. You may use multiple days as a comma-separated
44 list. A range of days can also be set by specifying the start and end day
45 separated by ``..'', for example `mon..fri`. These formats can be mixed.
46 If omitted `'*'` is assumed.
47
48 time-format:: A time format consists of hours and minutes interval lists.
49 Hours and minutes are separated by `':'`. Both hour and minute can be list
50 and ranges of values, using the same format as days.
51 First are hours, then minutes. Hours can be omitted if not needed. In this
52 case `'*'` is assumed for the value of hours.
53 The valid range for values is `0-23` for hours and `0-59` for minutes.
54
55 [[pvesr_schedule_format_examples]]
56 Examples:
57 ~~~~~~~~~
58
59 .Schedule Examples
60 [width="100%",options="header"]
61 |==============================================================================
62 |Schedule String |Alternative |Meaning
63 |mon,tue,wed,thu,fri |mon..fri |Every working day at 0:00
64 |sat,sun |sat..sun |Only on weekends at 0:00
65 |mon,wed,fri |-- |Only on Monday, Wednesday and Friday at 0:00
66 |12:05 |12:05 |Every day at 12:05 PM
67 |*/5 |0/5 |Every five minutes
68 |mon..wed 30/10 |mon,tue,wed 30/10 |Monday, Tuesday, Wednesday 30, 40 and 50 minutes after every full hour
69 |mon..fri 8..17,22:0/15 |-- |Every working day every 15 minutes between 8 AM and 6 PM and between 10 PM and 11 PM
70 |fri 12..13:5/20 |fri 12,13:5/20 |Friday at 12:05, 12:25, 12:45, 13:05, 13:25 and 13:45
71 |12,14,16,18,20,22:5 |12/2:5 |Every day starting at 12:05 until 22:05, every 2 hours
72 |* |*/1 |Every minute (minimum interval)
73 |==============================================================================