Dear Monks,
probably my question is offtopic to perlmonks. however..
iīm meditating about comparing two linux vmīs {A,B} which are widely identic with a perl script {S}. even there is any mismatch in configuration or even filesystem issue (ONLY OS relevant files) the script should rewrite several parts of the system A in system B to get them identic. If D={any difference} the Algorithm should do this:
Bx{A,D}->S->B/D --> B=A
i suppose that a trivial comparison of each file is not the way to go. are there any modules which support this task or perhaps you got any ideas above comparing any config files?
one of the main characteristics is velocity...
donīt know if there is any solution in perl with good performance..?!
the idea behind this: every time i set up a new vm or even a user crashs e.g. server configurations on a vm i want to (r)sync(??) this vm with a still configured second vm lying down reachable in a network.
$perlig =~ s/pec/cep/g if 'errors expected';
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.