Skip to content

scottmcarthur/db-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

#Installation

apt-get install python python-pip
pip install boto3
pip install --upgrade pip
mkdir -p ~/db-backup && cd "$_"
wget -O backup.py https://raw.githubusercontent.com/scottmcarthur/db-backup/master/backup.py
chmod +x ./backup.py

##Crontab

0 */6 * * * /usr/bin/mysqldump -u <username> -p<password> <database> | /bin/gzip > /root/db-backup/db.sql.gz; /root/db-backup/backup.py /root/db-backup/db.sql.gz <bucket> <database> <aws-id> <aws-key> >/dev/null 2>&1

About

A simple database backup script

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages