Skip to content

Instantly share code, notes, and snippets.

View farhanpatel's full-sized avatar

Farhan farhanpatel

View GitHub Profile
@farhanpatel
farhanpatel / a_mongodb_to_s3_backup.sh
Last active September 2, 2015 18:24 — forked from lazarofl/a_mongodb_to_s3_backup.sh
MongoDB Automatic Backup to Amazon S3 with Crontab and s3cmd.Red Hat Linux on Amazon EC2
#!/bin/bash
MONGODUMP_PATH="/opt/local/bin/mongodump"
MONGO_HOST="localhost"
MONGO_PORT="27017"
MONGO_DATABASE="paigeeworld_main"
TIMESTAMP=`date +%F-%H%M`
S3_BUCKET_NAME="paigeeworld-backup"