[rancid] Revision Searches

Doug Hughes doug.hughes at keystonenap.com
Fri Oct 20 00:42:39 UTC 2017


It's been a while since I've used cvs, but here's what I'd do with
subversion, which is not hugely different.

1) co the config tree into a temporary directory (here using svn co or
similar)

2) cd to the configs directory

3) look at the log history on one of the files and find the time frame
I'm looking for. Here, we're relying on the fact that rancid is running
a bulk check-in at once for all of the files, so they all have the same
version number at the same time of run.

4) svn update -r<version> * - that brings out all the files at that same
version number (e.g. whatever that version is from 5 revs ago)

5) run grep on *


(there's always the option of converting your cvs to subversion, though
I'm not sure if it didn't keep the revs the same if that would translate
similarly)

On 10/19/2017 5:37 PM, Lee wrote:
> On 10/19/17, Matthew Goeres <mgoeres at gmail.com> wrote:
>> Looking for ideas on how I can search back revisions on multiple devices.
>>
>> Example: I have a folder with around 200 devices in it. I would like to
>> look back at say the last 5 revisions for all devices and grep those
>> changes for something like a zone change. Anyone had some ideas on how to
>> do this with CVS?
> Would something like
>   cvs diff -D "2 months ago" -U 5 devName
> be close enuf?
>
> Lee
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

-- 
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (539.2562) 	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171019/23ef08eb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keystone-nap.png
Type: image/png
Size: 3476 bytes
Desc: not available
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20171019/23ef08eb/attachment.png>


More information about the Rancid-discuss mailing list