intro text that mentions the git repo
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 30 Jun 2011 15:59:28 +0000 (17:59 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 30 Jun 2011 15:59:28 +0000 (17:59 +0200)
scripts/ple-backup-cleanup.cron

index fd4fab6..afc0597 100755 (executable)
@@ -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))