Updated README w/ sample cron

-Skip
This commit is contained in:
Skip Grube 2023-06-29 21:47:01 -04:00
parent b2121fb520
commit f70cd0d2bc

View File

@ -76,3 +76,13 @@ A couple support scripts are also in the repository:
**repo_compare_launcher.sh :** Run all combinations of repocompare RHEL <---> Rocky. Compares 8 and 9 production, staging, source, modules, RHEL Beta, etc. **repo_compare_launcher.sh :** Run all combinations of repocompare RHEL <---> Rocky. Compares 8 and 9 production, staging, source, modules, RHEL Beta, etc.
## Sample Cron:
```
# Run full repocompare script every 4 hours
5 */4 * * * root /opt/repocompare/repo_compare_launcher.sh; rsync -av --delete /opt/repocompare_results/ /var/www/html/repocompare_results/
# Delete HTML repocompare pages more than 10 days old:
10 2 * * * root find /opt/repocompare_results/ -iname "*.html" -type f -mtime +7 -exec rm -f {} \;
```
(things might be cleaned up, to make results location more flexible)