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
This commit is contained in:
Girish Ramakrishnan
2025-09-22 13:27:26 +02:00
parent 0d5c1b99df
commit 4c3a8e1fd7
8 changed files with 146 additions and 20 deletions

View File

@@ -29,7 +29,8 @@ describe('backups', function () {
config: { backupDir: '/tmp/boxtest2' },
format: 'rsync',
retention: { keepWithinSecs: 2 * 24 * 60 * 60 },
schedule: '00 00 23 * * *'
schedule: '00 00 23 * * *',
contents: null
};
const appBackup = {

View File

@@ -228,7 +228,8 @@ async function databaseSetup() {
config: { backupDir: '/tmp/boxtest' },
format: 'tgz',
retention: { keepWithinSecs: 2 * 24 * 60 * 60 },
schedule: '00 00 23 * * *'
schedule: '00 00 23 * * *',
contents: null
}, auditSource);
await backupSites.setPrimary({ id }, auditSource);
}