刘凡 9ff4d1d109 add S3,archive,truncate | пре 2 година | |
---|---|---|
.. | ||
README.md | пре 2 година | |
backup_pg_to_s3.py | пре 2 година |
Script that backs up PostgreSQL Database and uploads it to an Amazon S3 Bucket
from backup_pg_to_s3 import PGBackupDB
pg_backup = PGBackupDB('my-s3-bucket', './db_file_backup.gz', 'username', 'password', 'example_db')
pg_backup.create_db_backup()
pg_backup.push_backup_to_s3()
pg_backup.delete_db_backup()