Google Sheets rotate log files

The google_sheets integration for Home Assistant can append rows in a google sheet. I use it for logging. However, log files get large and I would like to have a rotation, or copy, on anything like that. How to do it?