by Emma Richardson.
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.