From cf1a69e1c7b900cddc483abaa123bd7945410030 Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Wed, 24 Aug 2022 05:06:17 +0000 Subject: [PATCH] changed the default dir name to match the project name to be clone-friendly, fixed the paths in the cron file and a typo that meant yearlies wouldn't run --- dbbackup-cron | 10 +++++----- dbbackup-docker-compose | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dbbackup-cron b/dbbackup-cron index 4b50a2c..12be628 100644 --- a/dbbackup-cron +++ b/dbbackup-cron @@ -4,17 +4,17 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # run system backups # # hourly - at 5 minutes past mon-sat -25 * * * * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --hourly +25 * * * * root /home/data/scripts/dbbackup-docker-compose/dbbackup-docker-compose -c /home/data/scripts/dbbackup-docker-compose/default-docker-compose.conf --hourly # # daily - at 7:30 pm, mon-sat -30 19 * * * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --daily +30 19 * * * root /home/data/scripts/dbbackup-docker-compose/dbbackup-docker-compose -c /home/data/scripts/dbbackup-docker-compose/default-docker-compose.conf --daily # # weekly - at 7:30 pm, sun -30 19 * * sun root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --weekly +30 19 * * sun root /home/data/scripts/dbbackup-docker-compose/dbbackup-docker-compose -c /home/data/scripts/dbbackup-docker-compose/default-docker-compose.conf --weekly # # monthly - at 8:30 pm, on the first of the last of the month -30 20 1 * * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --monthly +30 20 1 * * root /home/data/scripts/dbbackup-docker-compose/dbbackup-docker-compose -c /home/data/scripts/dbbackup-docker-compose/default-docker-compose.conf --monthly # # yearly - at 8:30 pm, on the first of January. -30 20 1 1 * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf--yearly +30 20 1 1 * root /home/data/scripts/dbbackup-docker-compose/dbbackup-docker-compose -c /home/data/scripts/dbbackup-docker-compose/default-docker-compose.conf --yearly diff --git a/dbbackup-docker-compose b/dbbackup-docker-compose index f0393a4..0b8bcc3 100755 --- a/dbbackup-docker-compose +++ b/dbbackup-docker-compose @@ -29,7 +29,7 @@ VERBOSE=0 # # Stuff that should be universal for this install... # where we can find this app... -MAIN_DIR=/home/data/scripts/pgdbbackup +MAIN_DIR=/home/data/scripts/dbbackup-docker-compose # determine today's date DATE=`date '+%Y-%m-%d-%a'` # determine today's date