Skip to main content

Backup files and mysql to AWS S3

Project description


Backup files and mysql databases to Amazon S3


- mysql-client

Using PIP via PyPI::

pip install backup2s3

Using PIP via Github::

pip install git+


Create new IAM User

- In the IAM Management Console on Amazon, click Create New User and follow on-screen instructions.
- Click Create User Policy on the user page, then select Custom Policy, then paste the following text in the text area. Replace INSERT_YOUR_BUCKET_NAME with the bucket name you have previously created, and submit the form:

"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
"Resource": [

Сopy and edit the config

$ cp /etc/backup2s3-sample.yml /etc/backup2s3.yml

Run backup files and mysql databases


Usage: backup2s3 [options]
-a, --all Backup files and mysql db
-f, --files Backup files
-d, --databases Backup mysql databases
-h, --help Print man

Project details

Download files

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

Files for backup2s3, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size backup2s3-0.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

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