rgbboy / mongodb-s3-backup Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED - Mongodb to Amazon S3 Backup
DEPRECATED - Mongodb to Amazon S3 Backup
Just a heads up that the script won't work for us-east-1 region.
Here's my fix:
curl -X PUT \
--header "Host: $S3_BUCKET.s3.amazonaws.com" \
--header "Date: $HEADER_DATE" \
--header "content-type: $CONTENT_TYPE" \
--header "Content-MD5: $CONTENT_MD5" \
--header "Authorization: AWS $AWS_ACCESS_KEY:$SIGNATURE" \
--upload-file $DIR/backup/$ARCHIVE_NAME \
https://$S3_BUCKET.s3.amazonaws.com/$ARCHIVE_NAME
I think this script is limited to 5GB by the amazon single put max size, correct?
Some databases has no auth
so -u
and -p
parameters are not required.
Do you intend to declare an open-source license for this code?
Thanks
I get the following error if I run this:
"info" : "now locked against writes, use db.fsyncUnlock() to unlock",
"seeAlso" : "http://dochub.mongodb.org/core/fsynccommand",
"ok" : 1
As foolish as I am I ran this on my production. It locked my database for all writes.
I had to spend few minutes googling how to unlock it.
while alot of people complained.
SUCKS
Hey Dude,
Probably worth mentioning that the parameters for username and password in your backup.sh are missing a preceding "-" character. Script won't work without amending this. I'm using mongodb 3.x btw.
Thanks, Happy Holidays....
Hello,
So it seems the script will only backup to the root of an S3 bucket and not folder structures within the bucket?
Thanks..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.