How to make a Dump in MySQL so that the file contains the date?

0

I would like to do a Dump in my MySQL database, but I need this Dump to create the .sql file with the date the Dump was done, so that I have saved all previous backups by date.

    
asked by anonymous 26.04.2016 / 15:18

1 answer

0

Just create a shell script to back up for you.

link

Basically to get data just use: /bin/date +%d-%m-%Y

Remaining just dump and save the file.

    
26.04.2016 / 15:29