Good day y'all,

I've been reviewing our web server backup plan and I've realized that while we do tape backups and have boot/root disks, there's a fair amount of work to be done to restore all the perl modules I've installed.

The contingency for our server getting cracked has been to unplug the network cable, take a snap shot of the box's system for forensic evidence (we also have tripwire installed), reformat the entire hard drive and reinstall RedHat. Then I'd have to reinstall all the Perl modules I need and test them and sheeesh, it gets rather manually intensive at this point.

My question is, is there a script written or could I develop a script to automate most of this? It would be great to have a perl script that would reinstall all the modules (yes I know how to MCPAN) and do other system tasks preparing the box for use again. I've got a three page list of commands I need to run in order to be back to where I was.

Does anyone have an idea of where I should start? (If you want to RTFM me, please tell me which M you're talking about)

I think it would be great to have such a program. If one doesn't exist, it might be good to create one and share it. Would save a lot of time after HD crashes and getting cracked. This might be the one utility even Batman didn't have in his utility belt!

peppiv


In reply to Using Perl to help backup Linux server by peppiv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.