From f51a6b6d91e51f3b9e5036907d4238465a544320 Mon Sep 17 00:00:00 2001 From: Frans King Date: Fri, 12 Apr 2024 09:56:59 +0100 Subject: [PATCH] Ignoring duplicity informational messages for some backends (e.g. rsync) --- management/daily_tasks.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/management/daily_tasks.sh b/management/daily_tasks.sh index 24a97245..158e562c 100755 --- a/management/daily_tasks.sh +++ b/management/daily_tasks.sh @@ -15,8 +15,9 @@ if [ "$(date "+%u")" -eq 1 ]; then management/mail_log.py -t week | management/email_administrator.py "Mail-in-a-Box Usage Report" fi -# Take a backup. -management/backup.py 2>&1 | management/email_administrator.py "Backup Status" +# Take a backup (ignoring informational output from duplicity for some backends). +export DUPLICITY_VALIDATION_INFO="File size can't be validated, because of missing capabilities of the backend. Please verify the backup separately." +management/backup.py 2>&1 | sed 's/'"$DUPLICITY_VALIDATION_INFO"'//g' | management/email_administrator.py "Backup Status" # Provision any new certificates for new domains or domains with expiring certificates. management/ssl_certificates.py -q 2>&1 | management/email_administrator.py "TLS Certificate Provisioning Result"