Need to take aws elastic search/opensearch snapshots backup

Hi Team,

As of now we are using jenkins job to trigger cron every 6 hours so it will take snapshot backup into our own  aws s3 repository/bucket  (which we have registered). 

but we want to add cron inside elasticsearch/opensearch so that it will trigger every hour and take backup of snapshot every hour into registered aws s3 bucket.

it would be very helpful if i get assistance on this.