shaarli: Add backup component

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2022-01-19 12:15:16 -05:00 committed by Sunil Mohan Adapa
parent 855875daaf
commit 1450551332
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@ from django.utils.translation import gettext_lazy as _
from plinth import app as app_module
from plinth import frontpage, menu
from plinth.modules.apache.components import Webserver
from plinth.modules.backups.components import BackupRestore
from plinth.modules.firewall.components import Firewall
from plinth.package import Packages
@ -62,6 +63,10 @@ class ShaarliApp(app_module.App):
webserver = Webserver('webserver-shaarli', 'shaarli')
self.add(webserver)
backup_restore = BackupRestore('backup-restore-shaarli',
**manifest.backup)
self.add(backup_restore)
def setup(helper, old_version=None):
"""Install and configure the module."""

View File

@ -28,3 +28,5 @@ clients = [{
'url': '/shaarli/'
}]
}]
backup = {'data': {'directories': ['/var/lib/shaarli/data']}}