Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored May 1, 2024
1 parent be5bd2e commit 28db885
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions interapp-backend/scheduler/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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`;
Expand Down

0 comments on commit 28db885

Please sign in to comment.