lambda-mongocluster-s3
lambda-mongocluster-s3 copied to clipboard
Backup MongoDB cluster database to AWS S3 via a Lambda function.
I keep getting this error: ``` Error: mongodump command failed: at handler (file:///.../lambda-mongocluster-s3/index.js:31:11) ``` Any ideas?
Hello i'm facing problens when i try to execute my lambda. 2023-04-14T18:40:20.453Z f6cac88b-6c20-431a-939c-60b8621ac93b INFO Mongodump failed: Error: Command failed: ./mongodump --uri mongodb+srv://XXXXX:[email protected]/logs --out /tmp/mongodb_backup_20230414_184019/ /bin/sh: ./mongodump: Permission denied I changed...
Did you ever get the fallowing error: Failed: error dumping metadata: error creating directory for metadata file dump/nameOfDb: mkdir dump: read-only file system
Limitaion: /tmp directory storage size is 512 MB may cause failure for any larger data greater than 512 MB. Please suggest a fix so that I can help write it.
Optionally send messages to slack if appropriate env vars are provided.