Get the latest tech news
Command-Line Utility to Backup Google Mail, Calendar and Contacts to Files
A Command-Line Utility to automatically backup Google Mail, Calendar & Contacts to local files. - WeeJeWel/node-google-backup
This module automatically downloads your Google Mail, Contacts & Calendar to separate files. Google makes great services, but there are many horror stories of people locked out of their accounts. Hint: You can schedule this in a cronjob for automated backups.
Or read this on Hacker News