X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/6464fa26b88deb6d2280ec31347214b70d640747..b88d6ea0fa7181ba138ef249a9a4aac0ce77c8a3:/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb diff --git a/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb b/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb index a99503a23..e42cb8f46 100755 --- a/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb +++ b/cookbooks/mediawiki/templates/default/mediawiki-backup.cron.erb @@ -11,6 +11,6 @@ mysqldump --defaults-file=$T/mysqldump.opts --opt --skip-lock-tables --single-tr ln -s <%= @directory %> $T/wiki-<%= @name %>-$D/www export GZIP="--rsyncable -9" #make backup rsyncable nice tar --create --gzip --dereference --directory=$T --exclude=wiki-<%= @name %>-$D/www/w/images/thumb --exclude=wiki-<%= @name %>-$D/www/w/.git --exclude=wiki-<%= @name %>-$D/www/w/extensions/*/.git --file=$T/$B wiki-<%= @name %>-$D -nice rsync $T/$B backup::backup --fuzzy +nice rsync --preallocate --fuzzy $T/$B backup::backup rm -rf $T