From dda998c6155bd289fbe255e16d06b26d719e55d6 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 29 Sep 2026 16:59:09 +0100 Subject: [PATCH] sotm: no longer backup 2010 wp site --- cookbooks/stateofthemap/templates/default/backup.cron.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cookbooks/stateofthemap/templates/default/backup.cron.erb b/cookbooks/stateofthemap/templates/default/backup.cron.erb index 954cfe9b3..1c022fdf9 100644 --- a/cookbooks/stateofthemap/templates/default/backup.cron.erb +++ b/cookbooks/stateofthemap/templates/default/backup.cron.erb @@ -11,14 +11,13 @@ B="sotm-$D.tar.zst" mkdir "$T/sotm-$D" -<% %w(2010 2011 2012).each do |year| -%> +<% %w(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" mysqldump --defaults-file="$T/mysqldump.opts" --opt --no-tablespaces --max-allowed-packet=1G "sotm<%= year %>" > "$T/sotm-$D/sotm<%= year %>.sql" <% end -%> -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" @@ -26,7 +25,6 @@ set +e nice tar --create --dereference --directory="$T" \ --warning=no-file-changed \ --warning=no-file-removed \ - --exclude="sotm-<%= @name %>-$D/www2010/wp/.svn/tmp" \ --exclude="sotm-<%= @name %>-$D/www2011/wp/.svn/tmp" \ --exclude="sotm-<%= @name %>-$D/www2012/wp/.svn/tmp" \ --sort=name \ -- 2.47.3