Skip to content

15 backups / Day while 1 line Backup Crontab -e #3361

Answered by EugeneGGHQ
DominArsen asked this question in Q&A
Discussion options

You must be logged in to vote

Should be an easy one to solve here.

An asterisk * means 'ANY' so where you think you have 'backup every day as 4:00am' as:

* 4 * * *

This means 'backup every day when the hour starts with 4' I.e, every minute.4:00, 4:01, 4:02 etc

What you'll need is to set:

0 4 * * *

This will then backup only when the minute is 0 and the hour is 4.

The same goes for your 5:00am backup task.

Use crontab.guru to help with setting triggers for cron jobs :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@DominArsen
Comment options

@EugeneGGHQ
Comment options

Answer selected by DominArsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants