I recently lost configuration of one of my IDEs (deleted it myself, I am very smart). I had a backup but it was a few months old. I have a script to backup all my config and push it to GitHub. I was looking into a way to run a script every week to back up everything automatically but launchd / cron need a specific time to run. My laptop might not be running at that time but I do boot up my laptop every weekend at least once.
To make it clear, my problem differs substantially from this question talks about running a script "10 minutes after 2 am every weekday only". I’m not sure how to adapt it to my need to run only once per weekend.
Is there a way to configure launchd / cron to run on a weekend at any time to back up my configuration?
RunAtLoadso that it runs every time you power up the machine and on the scheduled interval. However, what difference does it make since you want it to happen randomly in the first place? It's far more powerful thancron. – Allan Jul 21 '18 at 23:07