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:
@@ -93,7 +93,6 @@ function storageApi(backupSite) {
|
||||
case 'upcloud-objectstorage': return require('./storage/s3.js');
|
||||
case 'contabo-objectstorage': return require('./storage/s3.js');
|
||||
case 'hetzner-objectstorage': return require('./storage/s3.js');
|
||||
case 'noop': return require('./storage/noop.js');
|
||||
default: throw new BoxError(BoxError.BAD_FIELD, `Unknown provider: ${backupSite.provider}`);
|
||||
}
|
||||
}
|
||||
@@ -517,7 +516,7 @@ async function add(data, auditSource) {
|
||||
encryptedFilenames = data.encryptedFilenames || false,
|
||||
encryptionPasswordHint = data.encryptionPasswordHint || null;
|
||||
|
||||
const formatError = backupFormats.validateFormat(provider, format);
|
||||
const formatError = backupFormats.validateFormat(format);
|
||||
if (formatError) throw formatError;
|
||||
|
||||
const nameError = validateName(name);
|
||||
@@ -581,7 +580,7 @@ async function createPseudo(data) {
|
||||
const encryptionPassword = data.encryptionPassword ?? null,
|
||||
encryptedFilenames = !!data.encryptedFilenames;
|
||||
|
||||
const formatError = backupFormats.validateFormat(provider, format);
|
||||
const formatError = backupFormats.validateFormat(format);
|
||||
if (formatError) throw formatError;
|
||||
|
||||
let encryption = null;
|
||||
|
||||
Reference in New Issue
Block a user