2 ms·
What’s your Google backup strategy? Last time I looked it required periodic manual steps.
by shermantanktop 2y ago
What’s your Google backup strategy? Last time I looked it required periodic manual steps.
- davchana 2y agoNot OP, but I have a Google Apps Script running on daily schedule which extracts every email older than 30 days as .eml file, renames it as YYYY MM DD HH MM SS SUBJECT.eml, saves in a Google Drive Folder with YYYY as subfolder. Drive itself is synced instantly with my hard drive, and I backup that drive occasionally (like around 3 to 5 weeks) to another local & rclone to Dropbox. 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.
- jackofalltrades 2y agoAny chance you can share that script?
- davchana 2y agoSure, I will post it on Gitlab, n will let you know. Need sometime to remove my own folder keys and stuff. Lots of things are simply hard coded. This post was my inspiration: https://www.labnol.org/code/download-gmail-eml-201028 https://www.labnol.org/code/download-gmail-eml-201028
- sebmellen 2y agohttps://cubebackup.com https://cubebackup.com
- corford 2y agoConvoluted but works for me: IMAP via Thunderbird then exporting the contents locally
- vmiklos 2y agoPlain mbsync works fine for email with an app password. APIs are there for contacts & calendar backup. I haven't tried backing up the rest.