Back up and recover remote mailboxes from the panel
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s

This commit is contained in:
parkel committed 2026-11-21 22:18:59 +01:00
1 parent 13cb45dfe4
commit 386525d314
13 files changed
+510 -24

No files matched your search

+13
View File
@@ -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",