auto backup the data of a web project in windows 10 MYSQL 5.7

136 Views Asked by At

i have created an inventory system (web-based) for a store which runs only in a system hosted by the same system i want to set a scheduled backup like if the person is entering data in the system so mysql automatically create a backup copy of data in a usb and this should happen daily or on every entry, how it may be possible kindly help

1

There are 1 best solutions below

0
waseeqnawaz On

i got to a solution with this mysqldump -u root -p databasename>backupfilename.sql

just go to the directory where you want to save the backup file and run the previous command with your db name and the file name you want to create

create a .bat file of this command and put that .bat file in your windows task scheduler and set a time for that task the auto backup will be working after that