]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/otrs/templates/default/backup.cron.erb
Enable directory indexes for APT repository
[chef.git] / cookbooks / otrs / templates / default / backup.cron.erb
index bfe5242afb3a34f0eaaaa1e149ffa749b8524270..cc782c29cfbf4ea68eae0d2b12155e58606e9573 100644 (file)
@@ -10,13 +10,12 @@ mkdir $T/otrs-$D
 chown otrs $T
 chown otrs $T/otrs-$D
 sudo -u otrs pg_dump --file=$T/otrs-$D/otrs.dmp otrs
 chown otrs $T
 chown otrs $T/otrs-$D
 sudo -u otrs pg_dump --file=$T/otrs-$D/otrs.dmp otrs
-ln -s /opt/otrs $T/otrs-$D/otrs
+ln -s /var/lib/otrs $T/otrs-$D/otrs-var
 ln -s /etc/apache2/sites-available/otrs.openstreetmap.org.conf $T/otrs-$D/apache2-otrs.openstreetmap.org.conf
 
 ln -s /etc/apache2/sites-available/otrs.openstreetmap.org.conf $T/otrs-$D/apache2-otrs.openstreetmap.org.conf
 
-export GZIP="--rsyncable -9"
 export RSYNC_RSH="ssh -ax"
 
 export RSYNC_RSH="ssh -ax"
 
-nice tar --create --gzip --dereference --directory=$T --file=$T/$B otrs-$D
+nice tar --create --dereference --directory=$T otrs-$D | nice gzip --rsyncable -9 > $T/$B
 nice rsync --preallocate --fuzzy $T/$B backup::backup
 
 rm -rf $T
 nice rsync --preallocate --fuzzy $T/$B backup::backup
 
 rm -rf $T