[Gllug] Undelete...?

Bruce Richardson itsbruce at uklinux.net
Thu Feb 5 17:34:49 UTC 2004


On Thu, Feb 05, 2004 at 06:15:39PM +0100, John wrote:
> Jason, perhaps you don't understand fully.
> Both David and I work in installing/managing/configuring Beowulf clusters.
> 
> Me, right at the moment I am working on a high availability failover 
> cluster. Remotely via ssh.
> I've got the thing working fine, but I've been asked to make some changes.
> So far so good, but I'm making some significant changes to files in 
> /etc/ha.d
> If I make a slipup, or don't remember to back out of the changes after 
> tests things could be bad.
> Yes, the sane thing to do is save .original files or whatever.
> But I agree with DAvid - CVS would help with things like that.

I adapted this from something I found in (I think) some old Apache
documentation:

---------------------
#!/bin/bash
#
# rcs-wrapped editor
/usr/bin/co -l $1
${EDITOR:-vi} $1
/usr/bin/rcsdiff -u $1
/usr/bin/ci -u $1
---------------------

I usually add it to a system as /usr/local/bin/rvi.  It calls your
default editor but checks out the latest RCS version beforehand and
checks in your changes afterward, showing you a summary of what you
changed.

The handy thing about RCS is that it doesn't need any preparation.
Check randomfile in and it simply creates "randomfile,v" in the same
directory (unless there is an RCS subdirectory in the same directory as
the file, in which case it puts it in there).

-- 
Bruce

What would Edward Woodward do?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20040205/798eaec5/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list