mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
backup / restoreslop
This commit is contained in:
@@ -136,5 +136,17 @@ module.exports = {
|
||||
get reportBuilder() {
|
||||
return runtime?.reportBuilder || null;
|
||||
},
|
||||
backupDatabase(destinationPath) {
|
||||
/*
|
||||
Backups include reporting history even when collection is currently
|
||||
disabled. Lazily opening the existing store keeps this one operation
|
||||
behind the report service's normal database ownership boundary.
|
||||
*/
|
||||
if (!storage) {
|
||||
storage = createStorage({ logger });
|
||||
storage.open();
|
||||
}
|
||||
return storage.backupDatabase(destinationPath);
|
||||
},
|
||||
stop: stopRuntime,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user