Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

http://blogs.sun.com/arungupta

TOTD #17: Backing Up your Blog Posts on Roller

 

This TOTD explains how to back up your blog posts hosted on
Roller-based installations. The
instructions are borrowed from Rich's
original
post
.

  1. Download

    blogapps-examples
    (1.0.4 as of this writing).
  2. Go to the directory blogapps-examples-1.0.4\java and invoke
    ant.
  3. Go to blogapps-examples-1.0.4\java\ex02\dist\grabber
    directory and edit config.properties to match your settings. My
    config file looks like:



    download_dir=./bsc_saved<br>
    blog_apitype=metaweblog<br>
    blog_username=arungupta<br>
    blog_password=&lt;my password&gt;<br>
    blog_id=arungupta<br>
    blog_url=http://blogs.sun.com/roller-services/xmlrpc<br>
    max_entries=1000
  4. If you are running behind a firewall, add proxy host and port
    information to Grabber.bat as:



    java -Dhttp.proxyHost=&lt;proxy host&gt; -Dhttp.proxyPort=&lt;proxy port&gt; -classpath
    %_cp_% com.manning.blogapps.extra02.Grabber %1 %2 %3
  5. And run the script Grabber.bat.

All the blog entries are locally stored in the directory specified in

config.properties
(./bsc_saved in this case). And a convenient
grabber-index.html page is generated that indexes all the entries.

There are multiple directories in my blog resources. Moreover I'd like to
link the resources to my backed up blog posts as well. So
backing
up resources
seems like a slightly more involved process so I'll try that
later. Otherwise Grabber is very cool and convenient for those in-flight and
airport lounge times :)

Please leave suggestions on other TOTD that you'd like to see. A complete
archive is available here.

Technorati: totd
blogs
roller
grabber