My level of understanding with Python is extremely limited, so I'm sorry if I don't use the correct terms / ideas here.
I have a Raspberry Pi, and on the crontab, I have a few scripts scheduled to run at certain times each day. These fire every day when I need them to, and it works fine.
There are some days when I need to alter the time some scripts fire, and it's usually in the evening when I need to make an adjustment, changing the time a script runs at night. This change only applies to the day I'm making the change, and the next day, I'd need the scripts to follow their normal schedule. So for instance:
The standard daily script schedule
00 21 * * * python /path/.../script1.py
15 21 * * * python /path/.../script2.py
30 21 * * * python /path/.../script3.py
Some days I need to change this to a slightly changed schedule, like this:
15 21 * * * python /path/.../script1.py
25 21 * * * python /path/.../script2.py
35 21 * * * python /path/.../script3.py
Or like this:
30 20 * * * python /path/.../script1.py
35 20 * * * python /path/.../script2.py
55 20 * * * python /path/.../script3.py
Sometimes the gap between the scripts stays the same, sometimes they don't. Sometimes the scripts will run later in the day, sometimes the scripts will run earlier.
This is just a convenience issue, but sometimes the day after I make this alteration, I forget to go back into the crontab and change the times back to the standard schedule. Most every day needs to be the standard schedule, and these adjustments are essentially one-off changes that happen from time to time.
Is there a way to create a file that has all the standard times listed (a 'master' file of sorts), and schedule it to be installed as the crontab, replacing the crontab that has any changes that may have been made on the crontab the day before? Essentially I want a way to have all the default times for all my scripts (there are many more than 3) revert back after I make any one-off changes. I would likely run that revert process around noon each day.
Thanks in advance for your help!