Commit 73bdd01b authored by James Valleroy's avatar James Valleroy

Add backups info to apps

Signed-off-by: James Valleroy's avatarJames Valleroy <jvalleroy@mailbox.org>
parent 174ef83c
......@@ -26,6 +26,7 @@ from plinth.signals import domain_added
from plinth.utils import format_lazy
from . import dynamicdns
from .manifest import backup
version = 1
......
#
# This file is part of FreedomBox.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
backup = {
'config': {
'directories': ['/etc/ez-ipupdate/'],
'files': [],
},
'data': {
'directories': [],
'files': [],
},
'secrets': {
'directories': [],
'files': [],
},
'services': []
}
......@@ -31,7 +31,7 @@ from plinth.signals import (domainname_change, post_hostname_change,
pre_hostname_change)
from plinth.utils import format_lazy
from .manifest import clients
from .manifest import backup, clients
version = 1
......
......@@ -120,3 +120,19 @@ _clients = validate([{
_clients.extend(jsxc_manifest.clients)
clients = _clients
backup = {
'config': {
'directories': [],
'files': ['/etc/ejabberd/ejabberd.yml'],
},
'data': {
'directories': ['/var/lib/ejabberd/'],
'files': [],
},
'secrets': {
'directories': [],
'files': ['/etc/ejabberd/ejabberd.pem'],
},
'services': ['ejabberd']
}
......@@ -27,7 +27,7 @@ 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
......
......@@ -26,3 +26,19 @@ clients = validate([{
'url': '/ikiwiki'
}]
}])
backup = {
'config': {
'directories': [],
'files': [],
},
'data': {
'directories': ['/var/lib/ikiwiki/'],
'files': [],
},
'secrets': {
'directories': [],
'files': [],
},
'services': []
}
......@@ -29,7 +29,7 @@ from plinth import service as service_module
from plinth.menu import main_menu
from plinth.utils import format_lazy
from plinth.views import ServiceView
from .manifest import clients
from .manifest import backup, clients
version = 1
......
......@@ -29,8 +29,8 @@ clients = validate([{
'usage':
format_lazy(
_('Start Gobby and select "Connect to Server" and '
'enter your {box_name}\'s domain name.'), box_name=_(
cfg.box_name)),
'enter your {box_name}\'s domain name.'),
box_name=_(cfg.box_name)),
'platforms': [{
'type': 'download',
'os': 'gnu-linux',
......@@ -45,3 +45,22 @@ clients = validate([{
'name': 'gobby'
}]
}])
backup = {
'config': {
'directories': [],
'files': [],
},
'data': {
'directories': ['/var/lib/infinoted/'],
'files': [],
},
'secrets': {
'directories': [],
'files': [
'/etc/infinoted/infinoted-cert.pem',
'/etc/infinoted/infinoted-key.pem'
],
},
'services': ['infinoted']
}
......@@ -29,7 +29,7 @@ from plinth import service as service_module
from plinth import action_utils, actions, frontpage
from plinth.menu import main_menu
from .manifest import clients
from .manifest import backup, clients
version = 2
......
......@@ -52,3 +52,30 @@ clients = validate([{
'url': _riot_desktop_download_url,
}]
}])
backup = {
'config': {
'directories': ['/etc/matrix-synapse/conf.d/'],
'files': [
'/etc/matrix-synapse/homeserver.yaml',
'/etc/matrix-synapse/log.yaml'
],
},
'data': {
'directories': [
'/var/lib/matrix-synapse/media/',
'/var/lib/matrix-synapse/uploads/'
],
'files': ['/var/lib/matrix-synapse/homeserver.db'],
},
'secrets': {
'directories': [],
'files': [
'/etc/matrix-synapse/homeserver.signing.key',
'/etc/matrix-synapse/homeserver.tls.crt',
'/etc/matrix-synapse/homeserver.tls.dh',
'/etc/matrix-synapse/homeserver.tls.key'
],
},
'services': ['matrix-synapse']
}
......@@ -24,7 +24,7 @@ from plinth import service as service_module
from plinth import action_utils, actions, frontpage
from plinth.menu import main_menu
from .manifest import clients
from .manifest import backup, clients
version = 4
......
......@@ -26,3 +26,19 @@ clients = validate([{
'url': '/mediawiki'
}]
}])
backup = {
'config': {
'directories': [],
'files': [],
},
'data': {
'directories': ['/var/lib/mediawiki-db/'],
'files': [],
},
'secrets': {
'directories': [],
'files': [],
},
'services': []
}
......@@ -27,7 +27,7 @@ from plinth import action_utils, actions, cfg, frontpage
from plinth.menu import main_menu
from plinth.utils import format_lazy
from .manifest import clients
from .manifest import backup, clients
version = 2
......
......@@ -50,3 +50,19 @@ clients = validate([{
'name': 'minetest'
}]
}])
backup = {
'config': {
'directories': [],
'files': ['/etc/minetest/minetest.conf'],
},
'data': {
'directories': ['/var/games/minetest-server/'],
'files': [],
},
'secrets': {
'directories': [],
'files': [],
},
'services': ['minetest-server']
}
......@@ -27,7 +27,7 @@ from plinth import action_utils, actions, cfg, frontpage
from plinth.menu import main_menu
from plinth.utils import format_lazy
from .manifest import clients
from .manifest import backup, clients
version = 1
......
......@@ -85,3 +85,19 @@ clients = validate([{
'name': 'evolution'
}]
}])
backup = {
'config': {
'directories': [],
'files': [],
},
'data': {
'directories': ['/var/lib/radicale/'],
'files': [],
},
'secrets': {
'directories': [],
'files': [],
},
'services': ['radicale']
}
......@@ -26,7 +26,7 @@ from plinth import action_utils, actions, frontpage
from plinth.menu import main_menu
from plinth.views import ServiceView
from .manifest import clients
from .manifest import backup, clients
version = 2
......
......@@ -73,3 +73,19 @@ clients = validate([{
'url': store_url('google-play', _csipsimple_package_id)
}]
}])
backup = {
'config': {
'directories': [],
'files': ['/etc/repro/repro.config', '/etc/repro/users.txt'],
},
'data': {
'directories': ['/var/lib/repro/'],
'files': [],
},
'secrets': {
'directories': ['/etc/repro/ssl/'],
'files': ['/etc/repro/dh2048.pem'],
},
'services': ['repro']
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment