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. |
|
|
Comments: |
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 :-)
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.
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?
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:
1. RPC::XML 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.
| |