fix: update backup archive to ignore migration secrets files (#5548)

aa50edcf4561301ec5ef916b247f0ec34d3ac4b9

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Ignore whitespace
src/users.js+1 -1
@@ -1052,7 +1052,7 @@ export async function createBackupArchive(handle, response) {
1052 archive.pipe(response);1052 archive.pipe(response);
10531053
1054 // Append files from a sub-directory, putting its contents at the root of archive1054 // Append files from a sub-directory, putting its contents at the root of archive
1055 const ignore = allowKeysExposure ? [] : [SECRETS_FILE];1055 const ignore = allowKeysExposure ? [] : [SECRETS_FILE, 'backups/secrets_migration_*.json'];
1056 archive.glob('**/*', {1056 archive.glob('**/*', {
1057 cwd: directories.root,1057 cwd: directories.root,
1058 follow: false,1058 follow: false,