mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
tor: Enable backup/restore
Backup and restore all instances of tor and not just FreedomBox instance. Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
6dd7823c9e
commit
47faa5512d
3 files changed
+29
-1
No files matched your search
@@ -29,7 +29,7 @@ from plinth.modules.names import SERVICES
|
||||
from plinth.signals import domain_added, domain_removed
|
||||
|
||||
from . import utils
|
||||
from .manifest import clients
|
||||
from .manifest import backup, clients
|
||||
|
||||
version = 2
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
_orbot_package_id = 'org.torproject.android'
|
||||
_tor_browser_download_url = \
|
||||
@@ -54,3 +55,13 @@ clients = validate([{
|
||||
'url': store_url('f-droid', _orbot_package_id)
|
||||
}]
|
||||
}])
|
||||
|
||||
backup = validate_backup({
|
||||
'config': {
|
||||
'directories': ['/etc/tor/']
|
||||
},
|
||||
'secrets': {
|
||||
'directories': ['/var/lib/tor/', '/var/lib/tor-instances/']
|
||||
},
|
||||
'services': ['tor@service']
|
||||
})
|
||||
Reference in new issue
Block a user