mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
983f4d13e8
commit
529c281734
5 files changed
+172
-12
No files matched your search
@@ -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']
|
||||
|
||||
|
||||
@@ -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']
|
||||
})
|
||||
Reference in new issue
Block a user