You don't need to write a cron command specific for this - setup automated backups within Moodle and reference the external disk there (make sure that your server has a path to it) and then just set up cron to run automatically per the Moodle installation instructions.
Backup and restore
Backup moodle courses on an external disk
This discussion has been locked so you can no longer reply to it.