backup_google.sh is a script that backs up data in the Google services I use: Contacts, Calendar, Reader, and Tasks. It uses ClientLogin to authenticate and curl to fetch the data from the source APIs.
Usage:
backup_google.sh EMAIL PASSWORD DIR
Note that this was written before the Tasks API was available, so it used the cleanest alternative available at the time. Thanks, Full Decent!
Also, if your account has 2-factor verification enabled, you’ll need to generate and use an application-specific password.