Skip to main content

MongoDB backups to cloud Amazon S3

Project description


$ sudo pip install s3mongobkp


All configuration located in /etc/s3mongobkp.conf:

# /etc/s3mongobkp.conf

access_key  = AKIAIK4KP&XSYHCIF*OK
secret_key  = +SqasKIMLizimFBmHJKPlJsSKldWnd1wNmSIkLvs
# Allocate a separate backup bucket, the program can remove other data from the bucket.
# Use unique name bucket.
bucket_name = mongobackup

hostname = localhost:27017
database = mybase
# Don't use this options if no password is set.
username =
password =

# Max life time backup in days
max_lifetime_backup = 3
# Template directory for backup
tmp_dir = /tmp



For periodic backup add an entry to cron:

$ crontab -e

and add an entry like:

10 */2 * * * /usr/local/bin/


Allocate a separate backup bucket, the program can remove other data from the bucket.


S3mongobkp is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

S3mogobkp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with S3mongobkp. If not, see <>.


  • python (>=2.7.0)

  • boto (>=2.7.0)

  • mongodb (>=2.2)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

s3mongobkp-0.2.tar.gz (2.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page