]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/thinkup/templates/default/backup.cron.erb
Drop thinkup.openstreetmap.org
[chef.git] / cookbooks / thinkup / templates / default / backup.cron.erb
diff --git a/cookbooks/thinkup/templates/default/backup.cron.erb b/cookbooks/thinkup/templates/default/backup.cron.erb
deleted file mode 100644 (file)
index 3460cbe..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-# DO NOT EDIT - This file is being maintained by Chef
-
-T=$(mktemp -d -t -p /var/tmp thinkup.XXXXXXXXXX)
-D=$(date +%Y-%m-%d)
-B=thinkup-$D.tar.gz
-
-mkdir $T/thinkup-$D
-mysqldump --user=thinkup --password=<%= @passwords["database"] %> --opt thinkup > $T/thinkup-$D/thinkup.sql
-ln -s /srv/thinkup.openstreetmap.org $T/thinkup-$D/www
-
-export GZIP="--rsyncable -9"
-export RSYNC_RSH="ssh -ax"
-
-nice tar --create --gzip --dereference --directory=$T --file=$T/$B thinkup-$D
-nice rsync $T/$B backup::backup
-
-rm -rf $T