From 84882d6c5b8770b9fc698b0212113ac184621a6c Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Tue, 23 Jun 2026 12:23:48 -0400 Subject: [PATCH] progress --- cron.examples/crontab.txt => cron/example.crontab | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename cron.examples/crontab.txt => cron/example.crontab (65%) diff --git a/cron.examples/crontab.txt b/cron/example.crontab similarity index 65% rename from cron.examples/crontab.txt rename to cron/example.crontab index 23088ab..26e26c6 100644 --- a/cron.examples/crontab.txt +++ b/cron/example.crontab @@ -4,7 +4,10 @@ 10 3 * * * /works/utils/prune_data.sh -d /works/cvtt/md_archive -D '6 months ago' 2>&1 | /usr/bin/ts '[\%Y-\%m-\%d \%H:\%M:\%S]' >> /works/logs/$(date '+\%Y\%m\%d').prune_md_archive.log # # ---------- U t i l s -15 0 * * * /works/utils/archive_logs.sh -L /works/logs -A /works/archive/logs -D 'week ago' -H 2>&1 | /usr/bin/ts '[\%Y-\%m-\%d \%H:\%M:\%S]' >> /works/logs/$(date +\%Y\%m\%d).archive_logs.log +# ---------- archiving logs +15 6 * * * /works/utils/archive_logs.sh -L /works/logs -A /works/archive/logs -D 'week ago' -H 2>&1 | /usr/bin/ts '[\%Y-\%m-\%d \%H:\%M:\%S]' >> /works/logs/$(date +\%Y\%m\%d).archive_logs.log +# ---------- moving archives to NAS +15 7 * * * /works/utils/move_archives.sh -D 'week ago' -H 2>&1 | /usr/bin/ts '[\%Y-\%m-\%d \%H:\%M:\%S]' >> /works/logs/$(date +\%Y\%m\%d).move_archives.log # # ============================================================ # ---------- T e s t