From 28db885ec213e33b67e7fbe23a6c8cb4c688aa70 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 04:53:45 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- interapp-backend/scheduler/scheduler.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/interapp-backend/scheduler/scheduler.ts b/interapp-backend/scheduler/scheduler.ts index 0902acef..29cb29ce 100644 --- a/interapp-backend/scheduler/scheduler.ts +++ b/interapp-backend/scheduler/scheduler.ts @@ -185,7 +185,6 @@ const minioSecretKey = process.env.MINIO_ROOT_PASSWORD as string; const minioBucketName = process.env.MINIO_BUCKETNAME as string; const minioAliasName = 'minio'; - const minioBackupTask = schedule( '0 0 0 */1 * *', async () => { @@ -197,7 +196,7 @@ const minioBackupTask = schedule( const d = new Date(); const fmted = `interapp_minio_${d.toLocaleDateString('en-GB').replace(/\//g, '_')}`; const newFile = `${path}/${fmted}.tar.gz`; - + await $`mc mirror ${minioAliasName}/${minioBucketName} /tmp/minio-dump/temp`; await $`cd /tmp && tar -cvf ${newFile} minio-dump/temp`; await $`rm -rf /tmp/minio-dump/temp`;