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