syncthing: Add backup/restore support

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2019-01-26 21:30:29 -05:00
1 parent 983f4d13e8
commit 529c281734
5 files changed
+172 -12

No files matched your search

+2 -2
View File
@@ -26,11 +26,11 @@ from plinth.menu import main_menu
from plinth.modules.users import register_group
from plinth.utils import format_lazy
from .manifest import clients
from .manifest import backup, clients
version = 1
managed_services = ['syncthing']
managed_services = ['syncthing@syncthing']
managed_packages = ['syncthing']
+8
View File
@@ -18,6 +18,7 @@
from django.utils.translation import ugettext_lazy as _
from plinth.clients import store_url, validate
from plinth.modules.backups.api import validate as validate_backup
_package_id = 'com.nutomic.syncthingandroid'
_download_url = 'https://syncthing.net/'
@@ -60,3 +61,10 @@ clients = validate([{
'url': '/syncthing'
}]
}])
backup = validate_backup({
'secrets': {
'directories': ['/var/lib/syncthing/.config']
},
'services': ['syncthing@syncthing']
})