X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..1bc8da5f3a3bfd6c3f0ba374f12d489d13831460:/cookbooks/otrs/templates/default/backup.cron.erb?ds=inline diff --git a/cookbooks/otrs/templates/default/backup.cron.erb b/cookbooks/otrs/templates/default/backup.cron.erb index aecce1c64..e7af774dc 100644 --- a/cookbooks/otrs/templates/default/backup.cron.erb +++ b/cookbooks/otrs/templates/default/backup.cron.erb @@ -10,12 +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 -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 export RSYNC_RSH="ssh -ax" nice tar --create --dereference --directory=$T otrs-$D | nice gzip --rsyncable -9 > $T/$B -nice rsync --preallocate --fuzzy $T/$B backup::backup +nice rsync --preallocate --fuzzy $T/$B backup.openstreetmap.org::backup rm -rf $T