What’s your Google backup strategy? Last time I looked it required periodic manual steps.
30 days so that I can have enough time to delete it. Trash & Spam is excluded, and every successful downloaded email is labeled to prevent it getting downloaded again in next run.
Originally 4 years ago when I started this script, it was timing out because of about 15 years of emails. I ran it for 6 minutes only, every hour. Now once it caught up, it needs only few seconds, and there are only like 5 to 20 emails caught in its daily net.
This post was my inspiration: