Skip to content

Instantly share code, notes, and snippets.

@gnuyoga
Created July 25, 2013 10:06
Show Gist options
  • Save gnuyoga/6078423 to your computer and use it in GitHub Desktop.
Save gnuyoga/6078423 to your computer and use it in GitHub Desktop.
Google picasa command line backup script
#!/bin/bash
# to install
# python 2.7 above
# install http://code.google.com/p/gdata-python-client/
# install http://code.google.com/p/googlecl/downloads/list
#
# once the above pacakges are installed you should be able to run the following
# you will have to authorize this machine before you can sucessfully run the same.
google picasa list-album > FILENAME
#
DONE=false
until $DONE ;
do
read || DONE=true
# google picasa list-album give out the "Album Name", Album URL
ALBUM_NAME=`echo $REPLY | awk -F, '{print $1}'
google picasa get $ALBUM_NAME --dest ~/picasaweb_photo/
# process $REPLY here
done < FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment