Skip to content

sparshadotel/pyrds-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Prerequisite

Make sure that RDS Backup is enabled for your RDS instance.

Usage

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 this statement returns True, backup is possible.
mssql.test(credentials)

# Backup the database
mssql.backup(credentials, 'database_name')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages