I need some help please, I can run the azcopy and rclone commands manually, but we have to prepare a scheduler script to run it on the cloud. Locally, I can set up a scheduler but I am not sure how to make it work on the cloud. I am looking for any sample bash or PowerShell script that will run the Azcopy or rclone commands on a schedule? The main goal is to copy the files from one storage account to another on a schedule.
I have an idea to log in using the service principal in the script and run it as a cron job but I am not sure how to implement it.