mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #106] Backup task ignore cron #87
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pharmarin on GitHub (Mar 6, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/106
I have to backup tasks with monthly (0 23 * */1 *) and daily (0 23 * * *) cron.
I expected that the monthly task would execute every month and the daily task would execute every day. But both execute every day.
What I am missing ?
@julien-wff commented on GitHub (Mar 7, 2025):
Hi!
The problem here is that in your monthly cron, you are not choosing the day of the month (the third
*). To run on the first day of each month, make it like so: 0 23 1 * *.Also, having a step of 1 (
*/1) is useless in crons, it's the same as just writing*. Your two crons were basically the same.Tip: you can use a site like Crontab Guru to preview your cron (click on next under the text interpretation to see the next 5 dates)
@pharmarin commented on GitHub (Mar 8, 2025):
Well I’m sorry to bother you for that.