3 # DO NOT EDIT - This file is being maintained by Chef
5 T=$(mktemp -d -t -p /var/tmp otrs.XXXXXXXXXX)
12 sudo -u otrs pg_dump --file=$T/otrs-$D/otrs.dmp otrs
13 ln -s /var/lib/otrs $T/otrs-$D/otrs-var
14 ln -s /etc/apache2/sites-available/otrs.openstreetmap.org.conf $T/otrs-$D/apache2-otrs.openstreetmap.org.conf
16 export RSYNC_RSH="ssh -ax"
18 nice tar --create --dereference --directory=$T otrs-$D | nice gzip --rsyncable -9 > $T/$B
19 nice rsync --preallocate --fuzzy $T/$B backup::backup