PDA

View Full Version : GUI or CL tool to do compare/diff of remote/local folders



pixelterra
November 13th, 2007, 06:46 PM
Looking for an open source tool to compare local and remote folders. My favorite to date is Beyond Compare, which unfortunately doesn't run on linux (yet?).

Any suggestions

This is pretty crucial for my full switch to linux as I'm a web developer, and essentially do this all day long.

smartbei
November 13th, 2007, 07:07 PM
What exactly do you want the program to compare?
I am not sure if you want the program you are looking for to compare the:

filenames in the two directories, or
file contents of similarly named files in the two directories, or
size of the directories, etc.


BTW - Checking the WINE AppDB; Beyond Compare was given a platinum rating on wine version 0.9.47. See http://appdb.winehq.org/objectManager.php?sClass=version&iId=9611

That is probably your best option.

pixelterra
November 13th, 2007, 07:40 PM
I want the following info shown as nicely as possible (color):


which files exist only locally
which files exist only remotely
which files that exist on L and R are exact copies
which files that exist on L and R are different
a diff/merge tool to reconcile different files


I frequently am forced to work on sites where they insist that a staff member alter files on a shared host server (read:no version control). This helps me see what they've done and not overwrite.

smartbei
November 13th, 2007, 07:59 PM
Hmmm...This is pretty simple to do using the command line, without the nice display.

Have you tried running Beyond Compare with Wine? As I said above, that is supposed to work (platinum rating means it works flawlessly), and you could have everything you want.

pixelterra
November 13th, 2007, 08:05 PM
I checked out the wine post. I've never used Wine yet, perhaps this is a good oportunity.

Also, how would this be easy on the command line? If it is, i'll do it.

Take a look at a screenshot from Beyond Compare: http://www.scootersoftware.com/en/shot7w.png

It seems like it wound't be easy from the CL. Would be nice though.

pmasiar
November 13th, 2007, 08:11 PM
mc - midnight commander. It can do this, and much much more, for more than 25 years - in previous incarnation as beloved Norton Commander.

pixelterra
November 13th, 2007, 08:14 PM
I thought I tried out MC a couple of years ago and it didn't do what I needed. Can't really remember though. It can really do local/remote compare and merge?

I'll check into that....

smartbei
November 13th, 2007, 09:44 PM
pixelterra - When I said it would be easy to do on the commandline, I specifically added that that would be without the nice display.

It would not be too difficult to make a small comamnd-line program that merely checks two dirs and returns the differences between them - but this is obviously not as useful/neat as what Beyond Compare/Midnight Commander.

pmasiar
November 14th, 2007, 02:12 PM
[MC] can really do local/remote compare and merge?
You can compare files and directories - MC is file manager after all. To merge changes in, you need different tool.

geirha
November 14th, 2007, 06:46 PM
I don't know exactly what you need this for, but to me it sounds like you should use subversion for this task ...

RaySeys
January 25th, 2008, 05:20 PM
What about Meld (apt-get install meld) you will need to smbmount the remote server first though