From cee03377cb83f38dd84e6646d460d22d4ea79e9c Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 30 Jun 2011 17:59:28 +0200 Subject: [PATCH] intro text that mentions the git repo --- scripts/ple-backup-cleanup.cron | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/ple-backup-cleanup.cron b/scripts/ple-backup-cleanup.cron index fd4fab6..afc0597 100755 --- a/scripts/ple-backup-cleanup.cron +++ b/scripts/ple-backup-cleanup.cron @@ -83,6 +83,9 @@ BACKUP_DIR=/db-backup # save all databases, either postgresql (currently on www) or ejabberd (currently on boot) function backup () { + echo "backup script on $HOST" + echo "Please do not change this script directly, use git and related makefile at" + echo "but http://git.onelab.eu/?p=infrastructure.git;a=blob;f=scripts/ple-backup-cleanup.cron" # postgresql ps -C postmaster >& /dev/null && backup_all_dbs $BACKUP_DIR $HOST $DATE \ || echo "No postgresql database to backup on $HOST" @@ -94,6 +97,9 @@ function backup () { # trash old files in $BACKUP_DIR # formerly in /etc/cron.weekly/clean-backup.sh function cleanup () { + echo "cleanup script on $HOST" + echo "Please do not change this script directly, use git and related makefile at" + echo "but http://git.onelab.eu/?p=infrastructure.git;a=blob;f=scripts/ple-backup-cleanup.cron" DATE=$(date +%s) ONE_WEEK=$((7*24*60*6)) DATE_OLD=$(($DATE - $ONE_WEEK)) -- 2.47.0