Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

jbackup.pl question. [Apr. 11th, 2005|04:55 pm]
LiveJournal Client Discussions


I'm trying to back up my journal using jbackup.pl . I want to get my journal into a text format so I can vi/grep it and find old entries.

When I run jbackup.pl however all I get back are dates. No actually entries for them.

$ ./jbackup.pl --dump=raw > journal.out
do_tie: tying database
do_untie: untying database

When I look at journal.out it's all:

event:realtime:1440 = 2001-07-23 21:21:41
event:realtime:4536 = 2004-07-07 05:07:34
event:realtime:543 = 2000-12-07 10:44:22
event:realtime:2692 = 2002-07-24 18:44:48
event:realtime:4797 = 2004-10-15 18:34:25
event:realtime:4435 = 2004-05-18 17:43:49
event:realtime:559 = 2000-12-10 23:05:44
event:realtime:2591 = 2002-06-13 07:55:44
event:realtime:632 = 2000-12-23 12:20:37
event:realtime:4334 = 2004-04-01 05:29:57
event:realtime:2490 = 2002-05-22 23:02:46
event:realtime:4595 = 2004-07-27 04:20:14
event:realtime:648 = 2000-12-30 01:04:57
event:realtime:4233 = 2004-02-26 16:18:08
event:realtime:4494 = 2004-06-20 21:09:55
event:realtime:4696 = 2004-09-07 23:05:57
event:realtime:4999 = 2005-01-09 12:48:50
event:realtime:4132 = 2004-02-02 10:49:29

Am I doing something wrong?

[User Picture]From: fbartho
2005-04-12 08:05 am (UTC)
look up lj archive... unless you don't want that sort of backup...
(Reply) (Thread)
[User Picture]From: vanbeast
2005-04-12 03:03 pm (UTC)
jbackup is more useful for some purposes :) Also, some people don't run Linux...
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2005-04-12 03:04 pm (UTC)
(or OSX or perl under windows or or or. I know, Linux isn't the only option)
(Reply) (Parent) (Thread)
[User Picture]From: fbartho
2005-04-12 03:33 pm (UTC)
I can see it being more useful for certain things, it just seemed from your description, all you wanted to do was view your old entries/store them... Also, I'm gonna make the assumption you're on Mac OSX (and the second half of your comment makes sense) instead of mentioning the fact that I didn't know ljarchive was available for linux but that I know its available for windows... of course maybe you just meant to replace linux with windows in the sentence above, but of course replacing linux with windows is just plain wrong.
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2005-04-12 04:06 pm (UTC)
It wasn't my post :)

ljArchive isn't available for Linux. I meant Linux isn't the only reason why someone wouldn't be able to run ljArchive.

The poster specifically said they wanted to be able to grep/vi their journal. While ljArchive can output to flat text (as far as I know, I haven't ever exported from it), jbackup does that by default.

It's also much easier to assemble a toolchain in a *nix environment than Windows. Sure, you can get grep, vi, and all the other *nix tools to run under win32, but it's not as easy.
(Reply) (Parent) (Thread)
[User Picture]From: jackal
2005-04-12 09:51 pm (UTC)
[jackal@jackal journal]$ uname -a
Linux jackal.dnsalias.com 2.6.10-1.770_FC3 #1 Thu Feb 24 14:00:06 EST 2005 i686 i686 i386 GNU/Linux

[jackal@jackal journal]$ cat /etc/redhat-release
Fedora Core release 3 (Heidelberg)

[jackal@jackal journal]$ ./jbackup.pl --dump=raw|head -100
do_tie: tying database
do_untie: untying database
(Reply) (Parent) (Thread)
[User Picture]From: vanbeast
2005-04-12 10:00 pm (UTC)
I'm not following...
(Reply) (Parent) (Thread)
[User Picture]From: xb95
2005-04-12 08:06 am (UTC)
There's nothing further down? Are event:realtime lines the only lines in the file?
(Reply) (Thread)
[User Picture]From: jackal
2005-04-12 09:52 pm (UTC)
It pulled one actual post out of like everyone 100.

(Reply) (Parent) (Thread)