Skip to content

ChrisKatsaras/mysql-Dump-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

MySQL Dump Script

Script that dumps SQL database on a schedule

alt tag

Dependencies

Requires pexpect and schedule

pip install pexpect
pip install schedule

Configuration:

command = "mysqldump -h localhost -uroot -p DATABASENAME"

Change localhost to desired host
Change -uroot to be -uYourUsername Change DATABASENAME to desired database

p.sendline("")

Put your mysql password in between the quotes.

Running:

To run in background:

nohup {fullpath} filename &

About

Script that dumps SQL database on a schedule

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages