?

Log in

No account? Create an account

Previous Entry | Next Entry

How to back up your LJ

There isn't one good way to back up your LJ, but you have a number of options for doing so. Things to consider: do you just want the content to read through again later? Or is there a chance you'll want to re-import the data to some other web site at some point? Of the reimportable formats, .xml is easier to read, but .cvs is an option too. (Never having needed to - thus far - import my LJ entries to anywhere, I can't tell you the logistics of doing so.) Do you want to save all the comments on your posts, or just the posts themselves?

Another issue with backups: not every solution works on every platform.

Multi-OS solutions
  • The dull-and-tedious method: Go to LJ's Export Journal Page, choose XML or CVS; type in the first year and month in which you posted to LJ; hit "Proceed"; save page, .xml or .cvs content only; hit back button. Type in next month's number. And so forth. Will NOT save comments. (Note: Tedious, but it's how I've been backing up my LJ to .xml for years. I'm considering alternatives, however, since it would be rather nice to retain comments as well.)

  • LJDump. A python script, so will work on many platforms, but will require comfort with command line interactions. Edit ljdump.config.sample, rename it to ljdump.config, then run it, python ljdump.py. Produces a directory of saved posts WITH comments, in XML. (Note: It errored on me first run; hopefully C. can debug it for me when he's home; most other people seem to be having better luck with it as is. It fails when the names or comments on userpics have non-ASCII characters in them. Use ljmigrate instead - it's based on ljdump, but works better.)

  • ljmigrate is based on ljdump but has solved many of the problems which the earlier version has. I've found it much more reliable.

  • LJBook - Produces a PDF, so will be useless if you ever wanted to import your LJ entries into any other format; but good for preserving the whole look-and-feel, including comments, for reminiscing and referring to later. (Note: Not currently loading for me. I'm betting it's overloaded right now.)


There are plenty of other backup tools out there, but they tend to be platform-specific, such as LJ Backup or LJArchive for Windows. If you use the relevant platform, however, they may be a better solution for you.

LJ FAQ on the subject is here. See also ljbackup_dev. Also, if you use Scrapbook, none of these will back that up for you. (See here for ways of doing so via other means.)

If anyone has better advice on this subject, please point me to it! A quick initial trawl didn't reveal any collated information on the subject, although it must be out there.

Comments

( 13 comments — Leave a comment )
flick
Jan. 6th, 2009 04:17 pm (UTC)
Haven't tried it yet, but here's a walkthrough for OS X: http://bryant.livejournal.com/659249.html
owlfish
Jan. 6th, 2009 04:25 pm (UTC)
Thank you for the link. Hopefully it'll help someone not used to working with command line programs!

(As for me, when I said debug, I really meant it. It errors on run after directory creation, and I don't feel like investigating unhashable instances when I have an in house python junkie.)
flick
Jan. 6th, 2009 04:44 pm (UTC)
Ah, fair enough. It seems to be working ok for me.

I really like the sound of this LJSM, which apparently does icons and makes you an index page and threads your comments and does your memories and everything, but I know about as much about how to drive perl as I do about python, so I think I'll wait 'til someone writes me some nice instructions!

Edit: And the post I linked to before now has nice simple instructions for LJSM, too.

Edited at 2009-01-06 05:22 pm (UTC)
rhube
Jan. 6th, 2009 06:16 pm (UTC)
I've just been linked here: http://ljbackup.yamnet.co.uk/ as a useful site.
targaff
Jan. 6th, 2009 04:34 pm (UTC)
LJArchive is definitely the way to go for Windows.
arcana_mundi
Jan. 6th, 2009 07:52 pm (UTC)
I use LJ archive, works like a dream.
darktouch
Jan. 6th, 2009 08:04 pm (UTC)
Thirded on the LJ Archive. I went through a bunch and this was clearly the winner.
spunbutterfly
Jan. 6th, 2009 06:14 pm (UTC)
Make sure you're running an older version of python? I think it might conflict with Python 3. I have it working fine with 2.6.1.
owlfish
Jan. 6th, 2009 06:20 pm (UTC)
It's more likely the opposite problem - I need a more up-to-date version. I'm on 2.3.5. Good thought though.
owlfish
Jan. 6th, 2009 10:55 pm (UTC)
I'm up-to-date now on python, but that didn't end up being the problem. The error was because the script isn't made to handle userpic names with non-ASCII chars in them.
arcana_mundi
Jan. 6th, 2009 07:54 pm (UTC)
http://ljbackup.yamnet.co.uk/ is what I use, not LJ archive. Oops!
celandineb
Jan. 6th, 2009 09:13 pm (UTC)
Here's a migration/backup tool that someone else linked to: http://antennapedia.livejournal.com/266462.html
owlfish
Jan. 6th, 2009 10:56 pm (UTC)
And it was last updated TODAY!
( 13 comments — Leave a comment )