Commit Graph

27 Commits

Author SHA1 Message Date
Girish Ramakrishnan
48a85a620d restore: remount sites in background 2025-11-26 15:36:33 +01:00
Johannes Zellner
fbbd71e7f2 validate functions are not async 2025-11-13 10:09:34 +01:00
Johannes Zellner
54cf168b4d Remove removeCacheFiles() backup sites are immutable now 2025-11-13 10:08:33 +01:00
Girish Ramakrishnan
de84b5113c mounts: always return message when getting status 2025-11-05 16:52:32 +01:00
Girish Ramakrishnan
8549663ed0 backupsites: do not mutate caller's config object 2025-10-13 09:39:06 +02:00
Girish Ramakrishnan
b2a41cc4d5 Add site name for backup events 2025-10-09 17:30:02 +02:00
Girish Ramakrishnan
e6024ac85b eventlog: rename backup site logs and fix eventlog summar 2025-10-09 17:24:33 +02:00
Girish Ramakrishnan
2ba0d716d1 do not validate password when restoring 2025-10-07 19:57:20 +02:00
Girish Ramakrishnan
02ba2fe59b encryption: do not allow password and hint to be the same 2025-10-07 16:52:39 +02:00
Girish Ramakrishnan
34043d5c97 backupsites: reinit sites after restore 2025-10-06 18:20:38 +02:00
Johannes Zellner
72c97ba224 remount() needs a backupSite object 2025-10-06 11:10:18 +02:00
Girish Ramakrishnan
ab0f8fc081 backupsite: remove bc- prefix from id 2025-10-01 10:27:20 +02:00
Girish Ramakrishnan
54cd9c7afa Use JSON query to remove the app id from site
the original regexp does not work for leading comma like [ "box", "appid" ]
2025-09-30 19:43:08 +02:00
Johannes Zellner
38267a26c1 Send some metrics 2025-09-29 16:16:22 +02:00
Girish Ramakrishnan
5dd5a20fc1 code -> sqlCode 2025-09-29 12:18:26 +02:00
Girish Ramakrishnan
73ddf48d12 Do not put sensitive config into the eventlog 2025-09-26 11:14:47 +02:00
Girish Ramakrishnan
379066c782 eventlog: remove private fields from site 2025-09-24 14:04:49 +02:00
Girish Ramakrishnan
f92cdf36f5 system: return the mounted and unmounted block devices (as long as xfs or ext4) 2025-09-23 18:51:23 +02:00
Girish Ramakrishnan
50d37ad752 Fix consistent use of enabledForUpdates -> enableForUpdates 2025-09-23 16:43:17 +02:00
Girish Ramakrishnan
08f7685ca3 backupSite: enableForUpdates in add 2025-09-23 10:21:43 +02:00
Johannes Zellner
49de124fc0 Fix typo 2025-09-22 20:24:29 +02:00
Girish Ramakrishnan
cc939de641 Fixup tests 2025-09-22 20:17:34 +02:00
Girish Ramakrishnan
5157789774 backups: add per site enabledForUpdates flag
previously, we had a singleton 'main' flag to indicate a site can
be used for updates. with this new approach, we can get rid of the
'primary' concept. each site can be used for updates or not.
2025-09-22 18:03:01 +02:00
Girish Ramakrishnan
305441ea28 backups: remove noop backend
the noop backend is migrated into 0 sites config.

when the updater code sees that there is no site to backup, it will
just fail. user has to manually update with skipBackup flag.
2025-09-22 16:44:12 +02:00
Girish Ramakrishnan
4c3a8e1fd7 backup site: add contents
it is a json that can be one of the three:

* null - include everything
* include - only include these ids
* exclude - everything except these ids
2025-09-22 13:28:16 +02:00
Johannes Zellner
7df7fd635b Allow any format for noop backup site 2025-09-21 18:06:32 +02:00
Girish Ramakrishnan
c5b7264f1a rename backupTargets to backupSites 2025-09-12 10:32:37 +02:00