add backup targets table

This commit is contained in:
Girish Ramakrishnan
2025-07-24 13:19:27 +02:00
parent 6d0a24cc95
commit 9780db6fa0
6 changed files with 171 additions and 15 deletions

View File

@@ -4,9 +4,13 @@ exports = module.exports = {
api
};
const BoxError = require('./boxerror.js');
function api(format) {
switch (format) {
case 'tgz': return require('./backupformat/tgz.js');
case 'rsync': return require('./backupformat/rsync.js');
}
throw new BoxError(BoxError.INTERNAL_ERROR, `Undefined format ${format}`);
}