From 2f157c0d070fa7b8470ca56633d1d6f6fea82ddc Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 2 Nov 2025 12:17:47 +0000 Subject: [PATCH] sotm: ensure backup does not abort on changed files --- cookbooks/stateofthemap/templates/default/backup.cron.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbooks/stateofthemap/templates/default/backup.cron.erb b/cookbooks/stateofthemap/templates/default/backup.cron.erb index 27e00d511..9fb0d5935 100644 --- a/cookbooks/stateofthemap/templates/default/backup.cron.erb +++ b/cookbooks/stateofthemap/templates/default/backup.cron.erb @@ -23,7 +23,13 @@ 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" +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 \ "sotm-$D" | nice zstd --quiet --long --rsyncable -o "$T/$B" -- 2.39.5