X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f1fcd97392a104350c03f6b8618d7f2c7f52fffe..05ee9b13b9f827d40400ef16d756f882b14953d7:/cookbooks/chef/templates/default/server-backup.cron.erb?ds=sidebyside diff --git a/cookbooks/chef/templates/default/server-backup.cron.erb b/cookbooks/chef/templates/default/server-backup.cron.erb index 3b7e953e7..048bc99e9 100644 --- a/cookbooks/chef/templates/default/server-backup.cron.erb +++ b/cookbooks/chef/templates/default/server-backup.cron.erb @@ -7,12 +7,12 @@ B=chef-server-$D.tar.gz mkdir $T/chef-server-$D chgrp opscode-pgsql $T $T/chef-server-$D chmod g+rwx $T $T/chef-server-$D -sudo -u opscode-pgsql /opt/chef-server/embedded/bin/pg_dump --file=$T/chef-server-$D/chef.dmp --clean opscode_chef -ln -s /var/opt/chef-server/bookshelf/data $T/chef-server-$D/bookshelf +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 rsync --preallocate --fuzzy $T/$B backup::backup rm -rf $T