X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9532639f55150f23cc8dff77c01a78a06c6db32b..2bce87624a95eeebc027ee8f3eed5fda8c47bba9:/cookbooks/thinkup/templates/default/backup.cron.erb?ds=sidebyside diff --git a/cookbooks/thinkup/templates/default/backup.cron.erb b/cookbooks/thinkup/templates/default/backup.cron.erb index b5b6c75bb..d46171796 100644 --- a/cookbooks/thinkup/templates/default/backup.cron.erb +++ b/cookbooks/thinkup/templates/default/backup.cron.erb @@ -7,10 +7,11 @@ 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 +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 -c arcfour" nice tar --create --gzip --dereference --directory=$T --file=$T/$B thinkup-$D nice rsync $T/$B backup::backup