Am appending the standard output and error of the shell script execution on a unix bok like shown below

```
/home/mydir/shellScript.sh >> /home/mydir/shellScript.log 2>&1

```

Now am wondering a way to keep logs going back as much as say 30 days else the log file size will keep on increasing.
Would appreciate if anyone can provide recommendations around the same.