fix(minio): support mc_path and harden sync against transient objects

This commit is contained in:
William Valentin
2026-02-19 13:18:20 -08:00
parent b5d691a99f
commit d4f4be068c
12 changed files with 238 additions and 21 deletions
+3
View File
@@ -284,6 +284,7 @@ describe('configSchema — backup', () => {
expect(result.backup.minio.enabled).toBe(false);
expect(result.backup.minio.prefix).toBe('flynn');
expect(result.backup.minio.secure).toBe(true);
expect(result.backup.minio.mc_path).toBeUndefined();
});
it('accepts custom backup settings', () => {
@@ -307,6 +308,7 @@ describe('configSchema — backup', () => {
bucket: 'flynn-backups',
prefix: 'daily',
secure: false,
mc_path: '/usr/local/bin/mc',
},
},
});
@@ -325,6 +327,7 @@ describe('configSchema — backup', () => {
expect(result.backup.minio.bucket).toBe('flynn-backups');
expect(result.backup.minio.prefix).toBe('daily');
expect(result.backup.minio.secure).toBe(false);
expect(result.backup.minio.mc_path).toBe('/usr/local/bin/mc');
});
});