I have a project that uses MySQL database. I want to backup the database every day, so I use this:
mysqldump -h host -u user -p password database > 'location.sql'
I want the files to be named with timestamp, i.e.:
Today the file will be named something-07-05-2014 08-00-00
Tomorrow will be, something-08-05-2014 08-00-00
How to append a formatted timestamp with the exported file name ?