I'm having some difficulty setting up my S3 to make an automatic backup to Glacier. That is, I want a copy of my s3 on the glacier every day. How to do this?
You can figure out how AWS's API works or just let Veeam do all the job with an additional ransomware protect. https://www.veeam.com/blog/leverage-vtl-on-amazon-aws-object-storage-s3-glacier.html
Since your goal is to be able to recover deleted files you simply need to turn on S3 versioning. You can recovered files marked as deleted from the console or command line.
If you want to restore / download your bucket as at a point in time use the S3 Point in Time Restore Tool.
AWS has a lot of features. Doing the associate certification is a good way to get a reasonably overview of them. It's important to understand your platform.