From f70cd0d2bcb4e41853e75f55d7bcd95b126ec744 Mon Sep 17 00:00:00 2001 From: Skip Grube Date: Thu, 29 Jun 2023 21:47:01 -0400 Subject: [PATCH] Updated README w/ sample cron -Skip --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 55ca799..eaf1702 100644 --- a/README.md +++ b/README.md @@ -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. +## 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)