eventlog: add backup target eventlog

This commit is contained in:
Girish Ramakrishnan
2025-07-25 12:08:33 +02:00
parent 59aaabecc7
commit 83ab701d02
12 changed files with 77 additions and 55 deletions
+5 -5
View File
@@ -17,7 +17,7 @@ const archives = require('../archives.js'),
timers = require('timers/promises');
describe('backup cleaner', function () {
const { setup, cleanup, app, getDefaultBackupTarget } = common;
const { setup, cleanup, app, getDefaultBackupTarget, auditSource } = common;
before(setup);
after(cleanup);
@@ -238,13 +238,13 @@ describe('backup cleaner', function () {
await backupTargets.setConfig(target, {
provider: 'filesystem',
backupFolder: '/tmp/someplace',
});
await backupTargets.setRetention(target, { keepWithinSecs: 1 });
await backupTargets.setSchedule(target, '00 00 23 * * *');
}, auditSource);
await backupTargets.setRetention(target, { keepWithinSecs: 1 }, auditSource);
await backupTargets.setSchedule(target, '00 00 23 * * *', auditSource);
});
async function cleanupBackups(target) {
const taskId = await backupTargets.startCleanupTask(target, { username: 'test' });
const taskId = await backupTargets.startCleanupTask(target, auditSource);
console.log('started task', taskId);