Log in

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

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

simple backup script [May. 20th, 2003|02:47 pm]
LiveJournal Client Discussions


I wrote simple perl script to backup my LJ entries. It is intended to be run as cron job once a day.

I wrote it for personal use, but somebody may find it useful. Your feedback is always welcome.

[User Picture]From: fgcusabre
2003-05-20 11:21 pm (UTC)
Can't locate RPC/XML/Client.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-freebsd /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-freebsd /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl .) at ljbackup.pl line 31.
BEGIN failed--compilation aborted at ljbackup.pl line 31.

I get that error...does that make sense? I chmod the file to 777

Do you know a free server that host CGI that has all the required files? Thanks :-)
(Reply) (Thread)
[User Picture]From: vzaliva
2003-05-21 08:18 am (UTC)
I need to install dependencies. They are listed
in the comment at the beginning of the file. Easiest
way to do this, is via CPAN.
(Reply) (Parent) (Thread)
[User Picture]From: fgcusabre
2003-05-21 01:13 pm (UTC)


Maybe I am confused.

Is this something that I need to have on my CGI Server?

Or is this something that needs to be developed. I am rather new to CGI/Perl.

The server I am using is hypermart.net

Has anyone else had any luck with this script getting it too work?

Do we have an example what the output looks like anywhere?
(Reply) (Parent) (Thread)
[User Picture]From: vzaliva
2003-05-21 01:41 pm (UTC)


This is not CGI script, you do not run it from
under web server. You start it from command line
and it downloads all your live journal posts
and saves it as bunch of HTML files in directory.
Next time you start, it downloads only new ones, posted
since last time.

In order to run it you need to install some perl
modules. Here is the list:

2. Digest::MD5
3. XML::Parser
4. URI::Escape

You can do it using CPAN. For detailed instructions
on using CPAN please see www.cpan.org or CPAN man page.

(Reply) (Parent) (Thread)