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.
This commit is contained in:
Girish Ramakrishnan
2025-09-22 16:33:51 +02:00
parent 807094c829
commit 305441ea28
18 changed files with 17 additions and 246 deletions

View File

@@ -19,12 +19,9 @@ function api(format) {
throw new BoxError(BoxError.INTERNAL_ERROR, `Undefined format ${format}`);
}
function validateFormat(provider, format) {
assert.strictEqual(typeof provider, 'string');
function validateFormat(format) {
assert.strictEqual(typeof format, 'string');
if (provider === 'noop') return null;
if (format === 'tgz' || format == 'rsync') return null;
return new BoxError(BoxError.BAD_FIELD, 'Invalid backup format');