Hello @User1818 and welcome to the forum!
Are you on Windows? If so, How to backup files older than X days raised this question then created a script.
Questions about the script can be asked there. Also note the precaution about behavior you might notice…