diff --git a/src/users.js b/src/users.js index 408026431..45d5144eb 100644 --- a/src/users.js +++ b/src/users.js @@ -1142,7 +1142,7 @@ export async function createBackupArchive(handle, response) { archive.pipe(response); // Append files from a sub-directory, putting its contents at the root of archive - const ignore = allowKeysExposure ? [] : [SECRETS_FILE]; + const ignore = allowKeysExposure ? [] : [SECRETS_FILE, 'backups/secrets_migration_*.json']; archive.glob('**/*', { cwd: directories.root, follow: false,