Need more help? Have us do it!
Boutell.Com Consulting Services

mirror-livejournal: saving a backup copy of a LiveJournal account

What is this about?

LiveJournal is a great thing, a really fantastic thing which I recommend highly. And I expect it to be around a long time. But hey, you never know, and anyone who has invested a lot of time in their journal would love to have a backup copy. This Perl script will make one.

Directions for Use

The correct syntax is:
mirror-livejournal -u username 
	[-a login-username] 
	[-p password] 
	[-d directory]
Of course, that must all be one line in practice, and you do not type the brackets.

The -u option specifies the name of the LiveJournal account to be backed up. Obviously, this is required.

Sometimes you may wish to save a copy of a different account, but still be able include locked entries as you would if you logged into your own account first. In this situation, use the -a option to specify the account name the program should log into LiveJournal as. If you are backing up your own journal, you don't need this.

The -p option specifies your livejournal password and is required if you wish to include locked entries in your backup copy.

The -d option specifies the directory where the backup copy of your LiveJournal should be put. Please don't specify an existing directory full of important files! Specify a new directory (the parent directory must exist), or skip this option. If you skip it, and the -u option is set to bob, then a new directory called bob will be created within the current working directory.

Bugs

While this script attempts to be very lazy and generous in the way it interprets LiveJournal's HTML pages, there is always a possibility that your LiveJournal's style settings will turn out to be incompatible with it. If that's the case, please contact us and be sure to give enough information (i.e. your livejournal name!) to allow us to reproduce the problem here and figure out a fix so that the script can be useful to more people.

The mirror-livejournal Perl script source code

Directions: click here to download a .zip file containing the mirror-livejournal script. Unzip it with the unzip command or let your desktop tools do it for you. Copy the script to /usr/local/bin. Make it executable with the command chmod 755 /usr/local/bin/mirror-livejournal. Of course, you don't have to put it in a shared directory if you don't want to; it's just a simple Perl script.

License Terms

Copyright 2004, Boutell.Com, Inc. Released under the terms of the GNU General Public License (GPL), version 2 or later. stripe-whores
stripe-whores
stripe-whores
stripe-whores

Contact Us

Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Boutell.Com, Inc. All Rights Reserved.