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 /opt/otrs $T/otrs-$D/otrs
 
  14 ln -s /etc/apache2/sites-available/otrs.openstreetmap.org.conf $T/otrs-$D/apache2-otrs.openstreetmap.org.conf
 
  16 export GZIP="--rsyncable -9"
 
  17 export RSYNC_RSH="ssh -ax"
 
  19 nice tar --create --gzip --dereference --directory=$T --file=$T/$B otrs-$D
 
  20 nice rsync --preallocate --fuzzy $T/$B backup::backup