Skip to content

ristep/mysql-python-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-python-backup

A simple script for backup MySql databases

  • backup.py - main script
  • backup.cnf - is a two-section config file

Examle of backup.cnf

[client] 
user = pmauser
password = superPassword
host = localhost

[config]
dbList = foodlog,phpmyadmin  
backupDir = ./backup
  • [client] - section is for connection parameters
  • dbList - is list of data-bases
  • backupDir - folder for backup files

Using

python3 backup.py

Requirements

  • python
  • gzip
  • mysqldump

Operating systems

  • Linux
  • Windows 10 - not tested yet

About

Python script for backup MySql databases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages