Herself’s Webtools

Webtools for Webmasters: Scripts, HowTos, Templates, Plugins, Widgets, Tips and Useful Information

Herself’s Webtools header image 1

PERL script to back up Blogger comments

August 8th, 2007 · No Comments

There are many tools for backing up Blogger blogs to Windows but none I could find for us OSX and Linux users.

Here is a PERL script that will fetch your rss comment feed from your blogger blog. It will grab your blogs comments and save them with the same name as on blogger. Comments are then stored in a separate directory for each post.Posts and images are not downloaded with this script.

backup-blogger-comments.pl

If you have Perl installed on your computer then down load the script.
Chmod 755 backup-blogger-comments.pl to make it executable
On line 38 change the 999s to your blog’s blogger id number

Then run the script../backup-blogger-comments.pl

If you have more than 300 comments change the max=300 to a number larger than the number of posts you have posted.

It’s a very fast script and will have your comments backed up in no time.

If, like me you have numerous blogs write a script to back up all the posts and comments like this:

#!/usr/bin/perl
# perl script to call all back up programs for blogger blogs

print “\nBacking up AI posts”;
system ( “./backupai.pl” );

print “\n Backing up AI comments”;
system ( “./backupai-comments.pl” );

print “\nBacking up Mobile posts”;
system ( “./backupmobile.pl” );

print “\n Backing up Mobile comments”;
system ( “./backupmobile-comments.pl” );

print “\nBacking up Recipes post”;
system ( “./backuprecipes.pl” );

print “\n Backing up Recipe comments”;
system ( “./backuprecipes-comments.pl”);

print “\nBacking up Garden posts”;
system ( “./backupgarden.pl” );

print “\n Backing up Garden comments”;
system ( ” ./backupgarden-comments.pl” );

print “\nBacking up Houseplants posts”;
system ( “./backuphouseplants.pl” );

print “\n Backing up Houseplant comments ” ;
system ( “./backuphouseplants-comments.pl” );

print “\nBacking up Webtools posts”;
system ( “./backupwebtools.pl” );

print “\n Backing up Webtools comments “;
system ( “./backupwebtools-comments.pl ” ); 

More information:
Download Perl and help to get you started 

You may need to install Perl modules; see How to install Perl modules 

See also:
Perl script to back up Blogger posts and images

Tags: blogger · perl · tools

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.