X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/098634e073c80dfde4038715bc683985b18c5184..b7c12630cb9de017d76fe60ff296534d6d061399:/cookbooks/chef/templates/default/server-backup.cron.erb diff --git a/cookbooks/chef/templates/default/server-backup.cron.erb b/cookbooks/chef/templates/default/server-backup.cron.erb index c1e2100b3..9b864768e 100644 --- a/cookbooks/chef/templates/default/server-backup.cron.erb +++ b/cookbooks/chef/templates/default/server-backup.cron.erb @@ -10,9 +10,7 @@ chmod g+rwx $T $T/chef-server-$D sudo -u opscode-pgsql /opt/opscode/embedded/bin/pg_dumpall --file=$T/chef-server-$D/chef.dmp --clean ln -s /var/opt/opscode/bookshelf/data $T/chef-server-$D/bookshelf -export GZIP="--rsyncable -9" - -nice tar --create --gzip --dereference --directory=$T --file=$T/$B chef-server-$D -nice rsync $T/$B backup::backup +nice tar --create --dereference --directory=$T chef-server-$D | nice gzip --rsyncable -9 > $T/$B +nice rsync --preallocate --fuzzy $T/$B backup.openstreetmap.org::backup rm -rf $T