From 102bd270409139d2c0f0d52f39e251bd2bdf1619 Mon Sep 17 00:00:00 2001 From: Jeff Volkenant Date: Thu, 23 Dec 2021 12:09:54 -0800 Subject: [PATCH] backup.py: added postgrey start/stop to backup process --- management/backup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/management/backup.py b/management/backup.py index 012ccccb..8a82c4ad 100755 --- a/management/backup.py +++ b/management/backup.py @@ -281,6 +281,7 @@ def perform_backup(full_backup): service_command("php8.0-fpm", "stop", quit=True) service_command("postfix", "stop", quit=True) service_command("dovecot", "stop", quit=True) + service_command("postgrey", "stop", quit=True) # Execute a pre-backup script that copies files outside the homedir. # Run as the STORAGE_USER user, not as root. Pass our settings in @@ -310,6 +311,7 @@ def perform_backup(full_backup): get_duplicity_env_vars(env)) finally: # Start services again. + service_command("postgrey", "start", quit=False) service_command("dovecot", "start", quit=False) service_command("postfix", "start", quit=False) service_command("php8.0-fpm", "start", quit=False)