I'm fairly new to cron and I'm trying to figure out a way to run a job every day of the week, except for the first day of each month and the first day of each week.
This may sound a little odd, but the context is that this is for a backup task. I want to backup every day, but also keep some backups around a little longer so take one backup each week and also one each month.
I want to setup a cron task for the daily job but I'm struggling to see how to effectively not run the daily task if it's on a day on which the weekly or monthly backup will also run. I think I can achieve this by adding a separate cron task for each day of the month, but that feels wrong because it's a lot of separate tasks.
Is there a better way to achieve this in cron?