From 8fa92b7f861ef1e00298caed3f26188dc358f2b4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 28 Mar 2023 09:33:07 +0100 Subject: [PATCH] Stop trying to backup non-existent SOTM 2016 site --- cookbooks/stateofthemap/templates/default/backup.cron.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cookbooks/stateofthemap/templates/default/backup.cron.erb b/cookbooks/stateofthemap/templates/default/backup.cron.erb index d7742f449..e0f4d87ba 100644 --- a/cookbooks/stateofthemap/templates/default/backup.cron.erb +++ b/cookbooks/stateofthemap/templates/default/backup.cron.erb @@ -8,7 +8,7 @@ B=sotm-$D.tar.gz mkdir $T/sotm-$D -<% %w(2007 2008 2009 2010 2011 2012 2016).each do |year| -%> +<% %w(2007 2008 2009 2010 2011 2012).each do |year| -%> echo '[mysqldump]' > $T/mysqldump.opts echo 'user=sotm<%= year %>' >> $T/mysqldump.opts echo 'password=<%= @passwords["sotm#{year}"] %>' >> $T/mysqldump.opts @@ -21,11 +21,10 @@ ln -s /srv/2009.stateofthemap.org $T/sotm-$D/www2009 ln -s /srv/2010.stateofthemap.org $T/sotm-$D/www2010 ln -s /srv/2011.stateofthemap.org $T/sotm-$D/www2011 ln -s /srv/2012.stateofthemap.org $T/sotm-$D/www2012 -ln -s /srv/2016.stateofthemap.org $T/sotm-$D/www2016 export RSYNC_RSH="ssh -ax" -nice tar --create --dereference --directory=$T --warning=no-file-changed sotm-$D | nice gzip --rsyncable -9 > $T/$B +nice tar --create --dereference --directory=$T sotm-$D | nice gzip --rsyncable -9 > $T/$B nice rsync --preallocate --fuzzy $T/$B backup::backup rm -rf $T -- 2.43.2