From: Peter Palfrader Date: Wed, 17 Apr 2013 22:09:32 +0000 (+0200) Subject: A smarter rsync X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=fdb7c9d3b05150dce39260d12359c53e1f24e1cc;p=mirror%2Fdsa-puppet.git A smarter rsync --- diff --git a/modules/roles/manifests/weblog_provider.pp b/modules/roles/manifests/weblog_provider.pp index ea14b2b93..94a9ef7a5 100644 --- a/modules/roles/manifests/weblog_provider.pp +++ b/modules/roles/manifests/weblog_provider.pp @@ -6,7 +6,7 @@ class roles::weblog_provider { } } else { file { '/etc/cron.d/puppet-weblog-provider': - content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM % 1800)); rsync -a --delete /var/log/apache2/*-public-access.log-*gz weblogsync@ravel:-weblogs-incoming-\n", + content => "SHELL=/bin/bash\n\n0 */4 * * * weblogsync sleep $((RANDOM % 1800)); rsync -a --delete-excluded --include '*-public-access.log-*gz' --exclude '**' /var/log/apache2/. weblogsync@ravel:-weblogs-incoming-\n", } } }