"mysqldump moodle > db-`date+%F`.sql"to create a sequence of dated file names - check the syntax of date (note the back ticks - not apostrophes).
Using crontab is pretty easy. If you've got access to a linux terminal type man 8 crontab and you will see some examples. I run a scheduled mysqldump and use