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