email: Add backup/restore component

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2022-02-14 19:53:22 -08:00 committed by James Valleroy
parent 851644574d
commit bbd0b629f3
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -10,6 +10,7 @@ import plinth.app
from plinth import actions, frontpage, menu
from plinth.daemon import Daemon
from plinth.modules.apache.components import Webserver
from plinth.modules.backups.components import BackupRestore
from plinth.modules.config import get_domainname
from plinth.modules.firewall.components import Firewall
from plinth.modules.letsencrypt.components import LetsEncrypt
@ -136,6 +137,10 @@ class EmailApp(plinth.app.App):
user_owner='root', group_owner='root', managing_app='email')
self.add(letsencrypt)
backup_restore = BackupRestore('backup-restore-email',
**manifest.backup)
self.add(backup_restore)
@staticmethod
def post_init():
"""Perform post initialization operations."""