You will need to create a script with the code I posted, modify the permissions to be able to execute it (
chmod +x ./your_script) and add a new entry in the bitnami's cron
sudo crontab -e -u bitnami
You will learn more about Cron here:
If you still need help, please note that we do not provide professional services, you will need to find someone in your community that helps you configure the cron the way you want.