Google Docs Backup Script
Note: This article was originally published at Planet PHP on 22 June 2010.
To this affect I whipped up a small (120 lines) PHP script that will retrieve all your Google documents and save them to a local directory, in the event the document was created/updated in the last 24 hours, thus ensuring snapshot support. Each file name is prefixed with Ymd (Year,month,day) prefix to ensure name uniqueness and provides an easy way to spot similar files or files that were created/updated on the same day. The script has just two dependancies, cURL and Simplexml extensions, which most PHP 5.0+ installs should have.
I am publish the script for anyone with similar needs to use/improve under the BSD license...
Code w/Syntax Highlighting