Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrubmx/db-backups
Python script to create database backups and save them to AmazonS3
https://github.com/scrubmx/db-backups
Last synced: 3 days ago
JSON representation
Python script to create database backups and save them to AmazonS3
- Host: GitHub
- URL: https://github.com/scrubmx/db-backups
- Owner: scrubmx
- Created: 2016-01-14T17:14:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-23T18:23:47.000Z (almost 9 years ago)
- Last Synced: 2023-04-03T11:51:41.372Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# DBBackup
Python script to create backups and save them to AmazonS3.
## Installation
Install dependencies
```bash
pip install -r requirements.txt
```Create a config.ini file and fill in your S3 key and passwords.
```bash
cp config.example.ini config.ini
```## Run as cron job
* Every 24 hours
```bash
sudo chmod a+x dbbackup.pycrontab -e
0 0 * * * /usr/bin/python /path/to/dbbackup.py >/dev/null 2>&1
```