10000 GitHub - jspblm/pg-dump-s3: A simple script that dump a postgresql database and upload to a bucket in AWS S3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jspblm/pg-dump-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Run with Python3

Create a secrets.py file with the credentials and config values.

DATABASE_NAME = '<date-base-name>'

DATABASE_DUMP_NAME = '<data-base-dump-file.sql>'

BUCKET_NAME = '<s3-bucket-destination>'

ACCESS_KEY = '<aws-access-key>'

SECRET_KEY = '<aws-secret-key>'

EMAIL_ORIGIN = '<aws-ses-confirmed-email>'

EMAIL_DESTINATION = ['<list-of-destination-emails>']

Install boto3: pip install boto3==1.5.1

And run with command: python3 pg_backup.py

About

A simple script that dump a postgresql database and upload to a bucket in AWS S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0