15 backups / Day while 1 line Backup Crontab -e #3361
-
Hello, today I put the following command line in "crontab-e"
My problem is that when I look at the backup I created 15 in 1 hour while I only have one command .. Can you help me so that there is only 1 Backup / Day before the update? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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:
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:
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 :) |
Beta Was this translation helpful? Give feedback.
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 :)