backups: add preserve attributes checkbox

This commit is contained in:
Girish Ramakrishnan
2025-01-24 13:41:54 +01:00
parent 2d1f24ca0f
commit 837d5803c8
6 changed files with 22 additions and 3 deletions

View File

@@ -219,6 +219,7 @@ async function testConfig(apiConfig) {
if ('noHardlinks' in apiConfig && typeof apiConfig.noHardlinks !== 'boolean') throw new BoxError(BoxError.BAD_FIELD, 'noHardlinks must be boolean');
if ('chown' in apiConfig && typeof apiConfig.chown !== 'boolean') throw new BoxError(BoxError.BAD_FIELD, 'chown must be boolean');
if ('preserveAttributes' in apiConfig && typeof apiConfig.preserveAttributes !== 'boolean') throw new BoxError(BoxError.BAD_FIELD, 'preserveAttributes must be boolean');
let rootPath; // for managed mounts, this uses 'mountPath', which could be some temporary mount location
if (apiConfig.provider === PROVIDER_FILESYSTEM) {