mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Use the backup component in all apps
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
f630fb6059
commit
fb1898befc
105 files changed
+748
-644
No files matched your search
@@ -16,8 +16,9 @@ from django.utils.translation import ugettext_noop
|
||||
from plinth import app as app_module
|
||||
from plinth import cfg, daemon, glib, menu
|
||||
from plinth.modules.apache.components import diagnose_url_on_all
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
|
||||
from .manifest import backup # noqa, pylint: disable=unused-import
|
||||
from . import manifest
|
||||
|
||||
version = 1
|
||||
|
||||
@@ -57,6 +58,10 @@ class DiagnosticsApp(app_module.App):
|
||||
'diagnostics:index', parent_url_name='system')
|
||||
self.add(menu_item)
|
||||
|
||||
backup_restore = BackupRestore('backup-restore-diagnostics',
|
||||
**manifest.backup)
|
||||
self.add(backup_restore)
|
||||
|
||||
# Check periodically for low RAM space
|
||||
interval = 180 if cfg.develop else 3600
|
||||
glib.schedule(interval, _warn_about_low_ram_space)
|
||||
|
||||
@@ -3,6 +3,4 @@
|
||||
Application manifest for diagnostics.
|
||||
"""
|
||||
|
||||
from plinth.modules.backups.api import validate as validate_backup
|
||||
|
||||
backup = validate_backup({})
|
||||
backup = {}
|
||||
Reference in new issue
Block a user