Database backup with crontab

I am using Trellis and I have shell script that makes sql dump backup file from my production database. Now I would like to make crontab to production server so it makes backup once a week. I was thinking to ssh to my prod server and do crontab stuff there but I think that is bad practice. So should I edit ansible script or something to make it happen in Trellis way? :slight_smile:

http://docs.ansible.com/ansible/cron_module.html

Thank you for guiding me! I made follow up article here Add automated db backups as part of Trellis? :slight_smile: