0 and 7 both stand for Sunday, you can use the one you want, so writing 0-6 or 1-7 has the same result.
Also, as suggested by @Henrik, it is possible to replace numbers by shortened name of days, such as MON, THU, etc:
0 - Sun Sunday1 - Mon Monday2 - Tue Tuesday3 - Wed Wednesday4 - Thu Thursday5 - Fri Friday6 - Sat Saturday7 - Sun Sunday
Graphically:
┌────────── minute (0 - 59)│ ┌──────── hour (0 - 23)│ │ ┌────── day of month (1 - 31)│ │ │ ┌──── month (1 - 12)│ │ │ │ ┌── day of week (0 - 6 => Sunday - Saturday, or│ │ │ │ │ 1 - 7 => Monday - Sunday)↓ ↓ ↓ ↓ ↓* * * * * command to be executed
Finally, if you want to specify day by day, you can separate days with commas, for example SUN,MON,THU will exectute the command only on sundays, mondays on thursdays.
https://stackoverflow.com/questions/18919151/crontab-day-of-the-week-syntax
Crontab Day of the Week syntax was last modified: May 23rd, 2020 by