Skip to content

joshkersey/Sqlite-Backup-to-S3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

SQLite to Amazon S3 backup script

Requirements:

The Problem

We needed to automate the backup of our SQLite databases. We have quite a few sites that run on SQLite and our managed backup plan only handles MySQL.

The Solution

This script takes a given directory and walks through those directories looking for files with a .db extension. Those files are then uploaded to a bucket on Amazon S3.

I've also added a function to remove databases that are older than X days. We've chosen to keep monthly backups from the first day of each month for our archive.

Usage

I dropped this into a cron job that runs every night. Be sure that the user running the cron job has read permission on the target backup directory.

About

Python script to backup Sqlite database files to Amazon S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages