Skip to main content

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

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')

Project details


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.3.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file pyrdsbackup-1.1.3.tar.gz.

File metadata

  • Download URL: pyrdsbackup-1.1.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3

File hashes

Hashes for pyrdsbackup-1.1.3.tar.gz
Algorithm Hash digest
SHA256 607595556bfa3f9e81c2c23b3ad47b9ba8999b6d15f1230e7881d6296d90474c
MD5 4eb472f0a3b7fe2dbcc4d2b89b41fc27
BLAKE2b-256 818afdd66ce29990df96e68dc38efb92b63e9d53740d6f74a76254fc65ff6eff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page