deluge: Enable backup/restore

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-10-21 19:17:59 -04:00
1 parent 4c7781a34a
commit 73bfcc41f9
3 files changed
+20 -1

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ from plinth import action_utils, actions, frontpage
from plinth.menu import main_menu
from plinth.modules.users import register_group
from .manifest import clients
from .manifest import backup, clients
version = 2
+8
View File
@@ -18,6 +18,7 @@
from django.utils.translation import ugettext_lazy as _
from plinth.clients import validate
from plinth.modules.backups.api import validate as validate_backup
clients = validate([{
'name': _('Deluge'),
@@ -27,3 +28,10 @@ clients = validate([{
'url': '/deluge'
}]
}])
backup = validate_backup({
'config': {
'directories': ['/var/lib/deluged/.config', '/var/lib/deluged/config']
},
'services': ['deluge-web']
})