On a similar theme to this question, how can I automatically (on a schedule) back up my contacts from Google Contacts/Gmail from the command line (Linux or OS X)? Ideally, this mechanism would be a shell script, so I can run it from cron or similar, and would be free (of cost). I am looking to incorporate this into an automatic backup process - it's easy to do this through the web interface, but not automatically. I'm not too fussy about the target file format, but something like CSV or vCard would be ideal.The only (unsuitable) solution I've found so far is:GoogleCL - what I used to use, but broken due to recent Google OAuth API changes.
How can I *automatically* backup my contacts in Google Contacts/Gmail?
backup;osx;linux
You should try GooBook,it supports oauth2 and also has a query command which prints what you've searched to stdout$ goobook query foofoo@bar.com     Joe 'Foo' Smith      Group NameIt also creates a cache file with I don't know which format which dumps all the address book in a one place whenever you want.It's probably worth adding that goobook dump_contacts seems like the best answer for an automated backup, it dumps all information about all contacts to stdout in some form of Atom feed.