<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:media='http://search.yahoo.com/mrss/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Krellish Musings</title>
  <link>http://krellis.livejournal.com/</link>
  <description>Krellish Musings - LiveJournal.com</description>
  <lastBuildDate>Wed, 07 Jan 2009 15:41:23 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>krellis</lj:journal>
  <lj:journalid>522348</lj:journalid>
  <lj:journaltype>personal</lj:journaltype>
  <atom10:link rel='hub' href='http://pubsubhubbub.appspot.com/' />
  <image>
    <url>http://l-userpic.livejournal.com/42933764/522348</url>
    <title>Krellish Musings</title>
    <link>http://krellis.livejournal.com/</link>
    <width>75</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>http://krellis.livejournal.com/231473.html</guid>
  <pubDate>Wed, 07 Jan 2009 15:41:23 GMT</pubDate>
  <title>Scrapbook Photo Backups</title>
  <link>http://krellis.livejournal.com/231473.html</link>
  <description>&lt;p&gt;While I don&apos;t really believe all the &quot;LJ is going to close&quot; drama brought about by yesterday&apos;s sudden layoffs (I do feel for those laid off with such lack of notice or severance, though - my thoughts go out to you all!) (if you have no idea what I&apos;m talking about, check out &lt;a href=&quot;http://community.livejournal.com/no_lj_ads/83519.html&quot;&gt;this post&lt;/a&gt;, which lays it out quite well), I did realize it would definitely be prudent to back up my LJ and Scrapbook files, which I have been quite remiss in doing to date.  LJ entry backup is quite well documented at these links:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://brown-betty.livejournal.com/284083.html&quot;&gt;LJ entry backup for Windows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://antennapedia.livejournal.com/238132.html&quot;&gt;LJ entry backup for Mac OS X&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;However, Scrapbook backup is poorly documented (if at all, really).  The best resource I&apos;ve come across is &lt;a href=&quot;http://community.livejournal.com/lj_dev/800317.html&quot;&gt;this entry&lt;/a&gt; in &lt;span class=&apos;ljuser  ljuser-name_lj_dev&apos; lj:user=&apos;lj_dev&apos; style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;http://community.livejournal.com/lj_dev/profile&apos;&gt;&lt;img src=&apos;http://l-stat.livejournal.com/img/community.gif&apos; alt=&apos;[info]&apos; width=&apos;16&apos; height=&apos;16&apos; style=&apos;vertical-align: bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;http://community.livejournal.com/lj_dev/&apos;&gt;&lt;b&gt;lj_dev&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;, which has solutions that basically don&apos;t work.  So I took it upon myself to fix this situation. :)&lt;/p&gt;

&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;

&lt;p&gt;The basic problem with the Perl client is that it was never updated to deal with LJ&apos;s split-authentication system after there were some security problems that prompted changes a long while back.  Thanks to the wonders of the WWW::Mechanize Perl module, I believe I&apos;ve fixed that client so that it works perfectly fine, and so, I present to you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://www.krellis.org/fotoup.pl&quot;&gt;Tim&apos;s updated version of fotoup.pl&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;MD5 checksum: abeedb22e0937ab0f4d9da62347993e3&lt;/li&gt;
&lt;li&gt;SHA1 checksum: 188f0506ed8be5dbb4b7ed833dfa6a2599bffeba&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I will try to keep this entry up-to-date with the latest checksums if I make any further changes - if you download a version with any other checksums, it may not be the most up-to-date.  This client is intended for people who are somewhat technical, and have Perl installed on their systems.  You&apos;ll probably also need to be able to install Perl modules.  I apologize, I don&apos;t have time to write up detailed instructions on any of that right now.  Once you have those bits done, though, all you need to do is create a &quot;.fotoup.conf&quot; file with your configuration in it.  The minimum configuration looks like:&lt;/p&gt;

&lt;pre&gt;
server: pics.livejournal.com
username: your LJ username
password: your LJ password
backupdir: a directory on your system that you want to back up to
&lt;/pre&gt;

&lt;p&gt;That file should be in your UNIX home directory.  If you&apos;re on Windows, I&apos;m not sure on the correct location, sorry.  Now just run &quot;./fotoup.pl --backup&quot;, and wait.  You should get output that looks something like this:&lt;/p&gt;

&lt;pre&gt;
$ ./fotoup.pl --backup
To upload: 0 from data, 0 from receipt

Fetching export.xml from server...
Total pictures: 3563
Already backed up: 0
Pictures to backup: 3563
Bytes to fetch over network: 4889620910
  Fetching image 1/3563 ...  0.1%
  Fetching image 2/3563 ...  0.1%
  Fetching image 3/3563 ...  0.2%
  Fetching image 4/3563 ...  0.3%
  Fetching image 5/3563 ...  0.3%
...
&lt;/pre&gt;

&lt;p&gt;Sometimes you will see an &quot;MD5 of downloaded file doesn&apos;t match, retrying.&quot; error - don&apos;t panic, the server just probably had a hiccup - the script will automatically retry once before failing fatally.  If it does fail again, you can re-start and you won&apos;t lose all the files you already downloaded - just run the exact same command again.  It&apos;ll then look something like this:&lt;/p&gt;

&lt;pre&gt;
$ ./fotoup.pl --backup
To upload: 0 from data, 0 from receipt

Fetching export.xml from server...
Total pictures: 3563
Already backed up: 5
Pictures to backup: 3558
Bytes to fetch over network: 4874557302
  Fetching image 1/3558 ...  0.1%
  Fetching image 2/3558 ...  0.1%
  Fetching image 3/3558 ...  0.2%
  Fetching image 4/3558 ...  0.2%
  Fetching image 5/3558 ...  0.2%
...
&lt;/pre&gt;

&lt;p&gt;Note the &quot;Already backed up&quot; number.  I added the re-try functionality because I was seeing this error quite often, hopefully it won&apos;t occur twice in a row very often, so you shouldn&apos;t have to restart repeatedly, but you might want to keep an eye on things anyway, and re-start if necessary.&lt;/p&gt;

&lt;p&gt;I&apos;m sorry these instructions aren&apos;t more non-geek-friendly.  Please feel free to play around and write up better instructions if you&apos;d like.  If you want to link to the updated version of the client, please consider linking to this entry so ensure that the MD5/SHA1 checksums are included as well.  Feel free to put links to your instructions in the comments here as well, so that others can also benefit from them.  Thanks!&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Edit 2009-01-08 08:37 EST:&lt;/b&gt; Updated fotoup.pl on the server, new MD5/SHA1 sums: abeedb22e0937ab0f4d9da62347993e3/188f0506ed8be5dbb4b7ed833dfa6a2599bffeba  New version should fix Windows problems with MD5, still looking at the Windows 404 loops.&lt;/p&gt;</description>
  <comments>http://krellis.livejournal.com/231473.html</comments>
  <category>photos</category>
  <category>lj</category>
  <category>geek</category>
  <lj:mood>accomplished</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>21</lj:reply-count>
</item>
</channel>
</rss>
