mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
backup.py: added postgrey start/stop to backup process
This commit is contained in:
parent
9288f0cd90
commit
102bd27040
@ -281,6 +281,7 @@ def perform_backup(full_backup):
|
|||||||
service_command("php8.0-fpm", "stop", quit=True)
|
service_command("php8.0-fpm", "stop", quit=True)
|
||||||
service_command("postfix", "stop", quit=True)
|
service_command("postfix", "stop", quit=True)
|
||||||
service_command("dovecot", "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.
|
# Execute a pre-backup script that copies files outside the homedir.
|
||||||
# Run as the STORAGE_USER user, not as root. Pass our settings in
|
# 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))
|
get_duplicity_env_vars(env))
|
||||||
finally:
|
finally:
|
||||||
# Start services again.
|
# Start services again.
|
||||||
|
service_command("postgrey", "start", quit=False)
|
||||||
service_command("dovecot", "start", quit=False)
|
service_command("dovecot", "start", quit=False)
|
||||||
service_command("postfix", "start", quit=False)
|
service_command("postfix", "start", quit=False)
|
||||||
service_command("php8.0-fpm", "start", quit=False)
|
service_command("php8.0-fpm", "start", quit=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user