All | 43 Folders | Accessibility | BoingBoing | Books | Computer Related | Family | Films | General | Hacking | Hobbies | Humor | Java | Links | Omni | OpenSolaris | Puzzles and Games

« Links for 3rd Octobe... | Main | Orca v2.17.0 Release... »
20061004 Wednesday October 04, 2006

Backing up Your Roller Blog Resources

I already know how to save a local copy of all of my posts to my blog at blogs.sun.com. Now I want to save a local copy of all the resources files that I use (there are over 1100 of them).

I was hoping it would have been as simple as doing:

  % wget -r -l 2 --user=richb --password=XXXXXXXX -np http://blogs.sun.com/richb/resource

but that didn't want to work, although it has no problem with individual files in that directory. For example:

  % wget -r -l 2 --user=richb --password=XXXXXXXX -np http://blogs.sun.com/richb/resource/links.jpg
works just fine.

Therefore I needed to create a list of all the files under my resource directory, and then wget them individually.

I logged into my blog and went to the "File Uploads" page. I then used my browser's "File->Save Page As..." to save that web page.

I then wrote a simple Python script to parse that file.

Here's a few notes to describe what you need to do if you want to use this too. I'm sure there are a hundred ways to skin this cat. This is one of them. It works for me.

I'd be happy to throw all of this away if somebody can tell me why the original wget command didn't work.

[]

[]

[]

( Oct 04 2006, 08:38:28 AM PDT ) [Listen] Permalink Comments [2]

Comments:

The wget doesn't work because the .../resource directory listing is forbidden, and cleverly disguised as "Not Found"

If you try it in your browser, you'll see the message.

I'm guessing the reason for being closed is to allow some privacy for resources used in the blog, but not actually shared to the public. I don't know what those resources might be, but that's my best shot.

All of that scripting would go away if the directory listing of .../resource was accessible

File a bug?

Posted by Dale Sears on October 05, 2006 at 10:57 AM PDT #

Thanks Dale! I'll ping Dave Johnson (Sun's Mr. Roller) and ask him whether it's worth filing a bug. I suspect this was deliberate and my hack will have to stay.

Posted by Rich Burridge on October 05, 2006 at 11:31 AM PDT #

Post a Comment:

Comments are closed for this entry.