<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 25 May 2013 02:31:24 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Ilia Alshanetsky's Blog: Google Docs Backup Script]]></title>
      <guid>http://www.phpdeveloper.org/news/14684</guid>
      <link>http://www.phpdeveloper.org/news/14684</link>
      <description><![CDATA[<p>
<i>Ilia Alshanetsky</i> has created a simple script (that uses curl) to <a href="http://ilia.ws/archives/221-Google-Docs-Backup-Script.html">make a backup of your Google Docs</a> to keep you and your data a bit safer (since Google provides no backup capabilities).
</p>
<blockquote>
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. 
</blockquote>
<p>
<a href="http://ilia.ws/patch/google.php.txt">His script</a> 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.
</p>
<p>
Here's the code in <a href="http://ilia.ws/patch/google.php.txt">raw text</a> and <a href="http://ilia.ws/patch/google.phps">syntax highlighted</a> versions.
</p>]]></description>
      <pubDate>Tue, 22 Jun 2010 11:50:50 -0500</pubDate>
    </item>
  </channel>
</rss>
