Sqlite-Backup-to-S3
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Python script to backup Sqlite database files to Amazon S3
# SQLite to Amazon S3 backup script

**Requirements:**

* Python
* Boto (http://code.google.com/p/boto/)

# 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.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。