1
Hello, I want to date the file generated by mysqldump, I have a shell script that generates the dump, however I need to put the date that was generated in the file name
Ex:
//have this command
mysqldump -uroot -p12345 base_diversos > base_diversos.sql
is generated the file "base_diversos.sql without problems", I need the file to have date in the name: Ex:
mysqldump -uroot -p12345 base_diversos > base_diversos_25_02_2015.sql
how to script the date variables to be dynamic and generate with the current date being backed up?
would be something like: Ex:
mysqldump -uroot -p12345 base_diversos > base_diversos_%d_%m_%Y.sql
I’ve tried several ways and error.
Thank you
It worked right, tmb saw the documentation on the function tiha everything there but not as you described. Thanks for the help.
– rafaelphp