Windows Server

Posted by m1mic

Objective:

  • Create a limited mySQL user account (e.g. Read-Only) to use in the batch file to follow the The Principle of Least Privilege methodology
  • Place multiple mySQL database backups in a specified folder
  • Add a timestamp to the mySQL dump file to easily distinguish between versions
  • Have multiple mySQL databases get backed up at a specified time

One of the "best" best practices is to backup any important data that you do not want to loose. This is especially important when you are storing a bunch of other people's data in a database. Problem is, if it is something that we have to think about, it just isn't going to happen. Luckily, all modern operating systems have the ability to run user generated scripts to help automate this task.