]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/thinkup/templates/default/backup.cron.erb
Add DHCP entry for noquiklos OOB card
[chef.git] / cookbooks / thinkup / templates / default / backup.cron.erb
index b5b6c75bb0a8a040c3f519ab01857a845938dfa7..b243e9f07739854b4891757486e08983b86d231d 100644 (file)
@@ -7,12 +7,12 @@ 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"
 
 nice tar --create --gzip --dereference --directory=$T --file=$T/$B thinkup-$D
-nice rsync $T/$B backup::backup
+nice rsync --bwlimit=500 $T/$B backup::backup
 
 rm -rf $T