3 # DO NOT EDIT - This file is being maintained by Chef
5 T=$(mktemp -d -t -p /var/tmp osm-blog.XXXXXXXXXX)
10 echo '[mysqldump]' > $T/mysqldump.opts
11 echo 'user=osm-blog-user' >> $T/mysqldump.opts
12 echo 'password=<%= @passwords["osm-blog-user"] %>' >> $T/mysqldump.opts
13 mysqldump --defaults-file=$T/mysqldump.opts --opt osm-blog > $T/osm-blog-$D/osm-blog.sql
14 ln -s /srv/blog.openstreetmap.org $T/osm-blog-$D/www
16 export GZIP="--rsyncable -9"
17 export RSYNC_RSH="ssh -ax"
19 nice tar --create --gzip --dereference --directory=$T --file=$T/$B osm-blog-$D
20 nice rsync --preallocate --fuzzy $T/$B backup::backup