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 authored and Sunil Mohan Adapa committed 2022-01-22 23:59:18 -08:00
1 parent 855875daaf
commit 1450551332
2 files changed
+7

No files matched your search

+5
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."""
+2
View File
@@ -28,3 +28,5 @@ clients = [{
'url': '/shaarli/'
}]
}]
backup = {'data': {'directories': ['/var/lib/shaarli/data']}}