I’m trying to do something like this:
mysqldump --user c1bt3 --password=blah c1bt3 > c1bt{date}.sql
where date is replaced with the current date, i.e. c1bt5-11-10.sql, and I’m trying to do it from a linux shell script.
Any ideas how I can do this?
You can either use the date command with your favourite formating
or use the date formating capailities of your shell, which can vary a bit.
This is ZSH:
Same usage…