Simplify RDS Backups to S3
Project description
pyrdsbackup
A library on top of pyodbc meant to simplify database backups from RDS to S3
Installation
sudo apt install -y unixodbc unixodbc-dev
pip install pyrdsbackup
Usage
Make sure that RDS Bakcup is enabled for your RDS instance.
from pyrdsbackup.db import mssql
# Initialize Credentials
credentials = {
'server': 'rdsserver.amazon',
'username': 'adminuser',
'password': 'password',
'port': 1433,
'bucket': 'bucket_name',
'driver_version': 17
}
# Test if the connection works. If returns True then backup is possible
mssql.test(credentials)
# Backup the database
mssql.backup(credentials, 'database_name')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrdsbackup-1.1.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for pyrdsbackup-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99bea1b79d0fd27567623a1089e5e8ec2f48cb56ca8377d9acf53e021f0efef5 |
|
MD5 | 4ff96c7f5349ba81baee8ddd3e5d9bbd |
|
BLAKE2b-256 | 05b3d9877c113685e7fbe45444da88bcfac285b7633e85b96b0e2bfacf5cbacf |