Back up and recover remote mailboxes from the panel
This commit is contained in:
1 parent
13cb45dfe4
commit
386525d314
13 files changed
+510
-24
No files matched your search
@@ -250,6 +250,9 @@ LOCAL_ACCOUNT_BACKUPS = os.environ.get("COULOBRE_LOCAL_ACCOUNT_BACKUPS") == "1"
|
||||
LOCAL_ACCOUNT_BACKUP_MAIL = (
|
||||
os.environ.get("COULOBRE_LOCAL_ACCOUNT_BACKUP_MAIL") == "1"
|
||||
)
|
||||
REMOTE_ACCOUNT_BACKUP_MAIL = (
|
||||
os.environ.get("COULOBRE_REMOTE_ACCOUNT_BACKUP_MAIL") == "1"
|
||||
)
|
||||
LOCAL_BACKUP_RETENTION = (
|
||||
LOCAL_ACCOUNT_BACKUPS
|
||||
and os.environ.get("COULOBRE_LOCAL_BACKUP_RETENTION") == "1"
|
||||
@@ -266,6 +269,16 @@ LOCAL_MAILBOX_RESTORE = (
|
||||
LOCAL_ACCOUNT_BACKUPS
|
||||
and os.environ.get("COULOBRE_LOCAL_MAILBOX_RESTORE") == "1"
|
||||
)
|
||||
REMOTE_MAILBOX_RESTORE = (
|
||||
LOCAL_ACCOUNT_BACKUPS
|
||||
and os.environ.get("COULOBRE_REMOTE_MAILBOX_RESTORE") == "1"
|
||||
)
|
||||
if (LOCAL_ACCOUNT_BACKUP_MAIL and REMOTE_ACCOUNT_BACKUP_MAIL) or (
|
||||
LOCAL_MAILBOX_RESTORE and REMOTE_MAILBOX_RESTORE
|
||||
):
|
||||
raise ImproperlyConfigured(
|
||||
"Choose one mailbox transport for backup and one for restore."
|
||||
)
|
||||
CELERY_BEAT_SCHEDULE = {
|
||||
"dispatch-account-retirements": {
|
||||
"task": "coulobre.hosting.tasks.dispatch_account_retirements",
|
||||
|
||||
Reference in new issue
Block a user