1
1
I have to create a lot of DB backups manually using mysqldump
, for example like this:
mysqldump -uroot -proot my-db > my-db.sql
I'm wondering if there's an easy way to include the current date or timestamp into the filename, so that the file would look like this: my-db-20150917.sql
(or another format is fine as well, even a timestamp).