fix: update backup archive to ignore migration secrets files (#5548)
This commit is contained in:
+1
-1
@@ -1052,7 +1052,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,
|
||||
|
||||
Reference in New Issue
Block a user