News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ilia Alshanetsky's Blog:
Google Docs Backup Script
June 22, 2010 @ 11:50:50

Ilia Alshanetsky has created a simple script (that uses curl) to make a backup of your Google Docs to keep you and your data a bit safer (since Google provides no backup capabilities).

As part of the backup strategy we also wanted to capture incremental versions of the documents (on a daily basis) in the event we needed to go back to the prior versions. 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.

His script exports each of the documents contained in the account and puts them on the local file system prefixed with a year/month/day value to keep things unique. You'll need curl and SimpleXML enabled to be able to use the script, but it's a pretty simple thing to drop in and run on most PHP5 installations.

Here's the code in raw text and syntax highlighted versions.

0 comments voice your opinion now!
googledocs google backup curl document


blog comments powered by Disqus

Similar Posts

Gonzalo Ayuso: Sending Android Push Notifications from PHP to phonegap applications

Gonzalo Ayuso: Google App Engine, PHP and Silex. Setting up a Login Provider

Zend Developer Zone: ZendCon Sessions Episode 041: Documents, Documents, Documents

Zend Developer Zone: Consuming Google Calendars with the Zend Framework

Liip Blog: Why a Project Switched from Google Search Appliance to Zend_Lucene


Community Events





Don't see your event here?
Let us know!


laravel language framework series podcast opinion interview introduction voicesoftheelephpant community package library install symfony security update version tool composer release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework