2021-08-05 18:06:43 +02:00
|
|
|
# See https://github.com/mcuadros/ofelia/blob/master/docs/jobs.md for job settings!
|
|
|
|
#
|
|
|
|
# Cron expressions in "schedule" represent times using 6 space-separated fields:
|
|
|
|
#
|
|
|
|
# Field name | Mandatory? | Allowed values | Allowed special characters
|
|
|
|
# ---------- | ---------- | -------------- | --------------------------
|
|
|
|
# Seconds | Yes | 0-59 | * / , -
|
|
|
|
# Minutes | Yes | 0-59 | * / , -
|
|
|
|
# Hours | Yes | 0-23 | * / , -
|
|
|
|
# Day of month | Yes | 1-31 | * / , - ?
|
|
|
|
# Month | Yes | 1-12 or JAN-DEC | * / , -
|
|
|
|
# Day of week | Yes | 0-6 or SUN-SAT | * / , - ?
|
2021-05-16 14:46:55 +02:00
|
|
|
|
2021-08-05 18:06:43 +02:00
|
|
|
# Uncomment to enable background indexing of files in your originals folder at 1am:
|
|
|
|
#
|
|
|
|
# [job-exec "photoprism index"]
|
|
|
|
# schedule = 0 0 1 * * *
|
|
|
|
# container = photoprism
|
|
|
|
# command = photoprism index --cleanup
|
|
|
|
# no-overlap = true
|
|
|
|
|
|
|
|
# Uncomment to automatically import every 2 hours:
|
|
|
|
#
|
|
|
|
# [job-exec "photoprism import"]
|
|
|
|
# schedule = @every 2h
|
|
|
|
# container = photoprism
|
|
|
|
# command = photoprism import
|
|
|
|
# no-overlap = true
|
2021-05-16 14:46:55 +02:00
|
|
|
|
|
|
|
[job-exec "photoprism convert"]
|
|
|
|
schedule = @daily
|
|
|
|
container = photoprism
|
|
|
|
command = photoprism convert
|
2021-08-05 10:38:12 +02:00
|
|
|
no-overlap = true
|
2021-05-16 14:46:55 +02:00
|
|
|
|
|
|
|
[job-exec "photoprism backup"]
|
|
|
|
schedule = @daily
|
|
|
|
container = photoprism
|
|
|
|
command = photoprism backup -a -i -f /photoprism/storage/index-backup.sql
|
2021-08-05 10:38:12 +02:00
|
|
|
no-overlap = true
|