CronJob
# * * * * * <command to execute>
# | | | | |
# | | | | day of the week (0β6) (Sunday to Saturday;
# | | | month (1β12) 7 is also Sunday on some systems)
# | | day of the month (1β31)
# | hour (0β23)
# minute (0β59)Create CronJob to Dump Database
apiVersion: batch/v1
kind: CronJob
metadata:
name: postgres-backup
spec:
schedule: "0 0 * * *" # Runs at midnight daily
jobTemplate:Manually Trigger Job
References
Last updated