Jump to content
  • 0

MySql backup every 5/10 mins


rossco5378

Question

6 answers to this question

Recommended Posts

  • 0

there is a free tool, its called cmd.exe

but this in a textdocument:

cd /D "C:\Program Files\MySQL\MySQL Server 5.6\bin"

mysqldump -u root -p DBNAME --password=YoUrAwEsOmEpAsSwOrD --result-file="C:\Yourawesomebackupdirectory\SQL Backup\Backup.sql"

Safe the textdocument as a .bat file and run it with a sheduler eg. BEC or Planed Tasks....

Link to comment
Share on other sites

  • 0

there is a free tool, its called cmd.exe

but this in a textdocument:

cd /D "C:\Program Files\MySQL\MySQL Server 5.6\bin"

mysqldump -u root -p DBNAME --password=YoUrAwEsOmEpAsSwOrD --result-file="C:\Yourawesomebackupdirectory\SQL Backup\Backup.sql"

Safe the textdocument as a .bat file and run it with a sheduler eg. BEC or Planed Tasks....

Fair enough but that just over writes the file... I want to keep atleast 24 hours worth of backups. Is there anyway to save the sql with a time and date on the end?

 

EDIT:

This bat file doesn't fully back up the database for some reason. It doesn't backup the contents of each table

Link to comment
Share on other sites

  • 0

Fair enough but that just over writes the file... I want to keep atleast 24 hours worth of backups. Is there anyway to save the sql with a time and date on the end?

 

EDIT:

This bat file doesn't fully back up the database for some reason. It doesn't backup the contents of each table

Did you set your Mysql directory correct?

I run that on mysql server 5.6 and one server 5.5 without issues.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...