Skip to content

Commit 5b9193c

Browse files
Fix backup script
1 parent 38a5bf5 commit 5b9193c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/s3-sync.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,14 @@ export async function backupExistingFolders() {
4141
await checkExecutableValidity()
4242
const timestamp = new Date().toLocaleString().replace(/[/|:| |,]/g, '_')
4343

44-
return await executeS3Sync({
44+
await executeS3Sync({
4545
from: `${apiDocsBucketUrl}/rev-index`,
46-
to: `${apiDocsBucketUrl}/rev-index-backup/${timestamp}`,
46+
to: `${apiDocsBucketUrl}/backup/${timestamp}/rev-index`,
47+
})
48+
49+
await executeS3Sync({
50+
from: `${apiDocsBucketUrl}/json-docs`,
51+
to: `${apiDocsBucketUrl}/backup/${timestamp}/json-docs`,
4752
})
4853
}
4954

0 commit comments

Comments
 (0)