Skip to content

Emialcaraz/backup-python-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

This python script is used for MYSQL DB backup

using mysqldump and tar utility. Written by : Emiliano Alcaraz

Created date: June 26, 2019 Tested with : Python 2.7 Script Revision: 1.0

Requirements:

  • datetime
  • pipes
  • humanize
  • smtplib

Features

  • you can receive emails with the information of the backup.
  • Add your database and email credentials.
  • The files are compressed in .gz in order to reduce the size.
  • We delete old files every five days and keep them updated

Crontab

  • You need to run the script in crontab to make the backup daily.

alt text

About

python script to backup mysql databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages