Comment Comment by simonw If you're going to run something like this, I thoroughly recommend using Git for it.You can have your cron do something like this: curl https://internal.corp/employees.txt > employees.txt git add employees.txt git commit -m "Automated: $(date -u)" || exit 0 The || exit 0 should ensure no errors even if there is nothing to commitNow you have a commit history of every change made to that source of information - just run "git log" to view it.I run this kind of thing on scheduled GitHub Actions all the time, see https://simonwillison.net/2020/Oct/9/git-scraping/ parent simonw 2 years ago
You can have your cron do something like this:
The || exit 0 should ensure no errors even if there is nothing to commitNow you have a commit history of every change made to that source of information - just run "git log" to view it.
I run this kind of thing on scheduled GitHub Actions all the time, see https://simonwillison.net/2020/Oct/9/git-scraping/