Skip to content

Commit

Permalink
maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
AvidDabbler committed Feb 5, 2024
1 parent eb021f5 commit 0f08786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drizzle/backup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export async function backupS3Object(bucket: string, sourceKey: string, destinat
try {
const copyObjectCommand = new CopyObjectCommand({
Bucket: envConfig.S3_BUCKET, // Replace with your S3 bucket name
CopySource: `/${bucket}/${sourceKey}`, // Source object key
// CopySource: `/${bucket}/${sourceKey}`, // Source object key
CopySource: `drizzle/${sourceKey}`, // Source object key
Key: destinationKey, // Destination object key
});
const response = await s3Client.send(copyObjectCommand);
Expand Down

0 comments on commit 0f08786

Please sign in to comment.