Script that dumps SQL database on a schedule
Requires pexpect and schedule
pip install pexpect
pip install schedule
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.
To run in background:
nohup {fullpath} filename &