<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Sat May 25, 2013 2:46 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Sat May 25, 2013 2:46 pm</pubDate>
  <lastBuildDate>Sat May 25, 2013 2:46 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104909#104909</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 10:07 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Install on both. It has to be the same version, but that's unlikely to be a problem. It uses SSH to communicate, so you just need to set up key authentication for the user(s) - but you should have that anyway.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104909#104909</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Mar 13, 2012 10:07 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104909#104909</guid>
                                      </item>
                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104908#104908</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=63'&gt;guy&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 9:56 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Unison sounds great for what I want too, to sync my files between two boxes with different versions of debian.&lt;br /&gt;
&lt;br /&gt;
But the eternal noob is cautious enough to ask some questions first:&lt;br /&gt;
&lt;br /&gt;
Do I need to install it on one host or both?&lt;br /&gt;
If both, does it matter if I install different versions on each box?&lt;br /&gt;
&lt;br /&gt;
And do I need to do anything to make the boxes accessible to each other? This needs a level of security, so that other boxes on my network (e.g. visiting kids' laptops) cannot access them.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104908#104908</comments>
                                        <author>guy</author>
                                        <pubDate>Tue Mar 13, 2012 9:56 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104908#104908</guid>
                                      </item>
                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104900#104900</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=19718'&gt;Bruno&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 1:18 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I recommend &lt;a href=&quot;http://www.cis.upenn.edu/~bcpierce/unison/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;Unison&lt;/a&gt;, too, I use it on both Linux and Windows. When installing on Windows, you will also need to install something called &lt;a href=&quot;http://sourceforge.net/projects/gtk-win/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;GTK+ for Windows Runtime Environment&lt;/a&gt;, it's a tool-kit for drawing Unison's GUI. After installing it, you may then need to add its location to your &amp;quot;Path&amp;quot; environment variable (if the installer didn't already do so) which should be here:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;C&amp;#58;\Program Files\GTK2-Runtime\bin&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
With two collections stored on media that use different file systems (as is the case with Linux and Windows), Unison may throw up an error when it tries to synchronise the permissions of the files. If this happens, add the following lines to Unison's profile files (located at &lt;span style=&quot;font-weight: bold&quot;&gt;~/.unison/*.prf&lt;/span&gt; on Linux and &lt;span style=&quot;font-weight: bold&quot;&gt;C:\Documents and Settings\&amp;lt;user&amp;gt;\.unison\*.prf&lt;/span&gt; on Windows):&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;perms = 0&lt;br /&gt;
dontchmod = true&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Also watch out for failures to synchronise files whose names contain characters that are illegal in the other file system.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104900#104900</comments>
                                        <author>Bruno</author>
                                        <pubDate>Tue Mar 13, 2012 1:18 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104900#104900</guid>
                                      </item>
                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104896#104896</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67972'&gt;nigel.taylor&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 12:24 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks for that Nelz. I will give it a try and let you know how I get on.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Nigel</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104896#104896</comments>
                                        <author>nigel.taylor</author>
                                        <pubDate>Tue Mar 13, 2012 12:24 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104896#104896</guid>
                                      </item>
                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104895#104895</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=5'&gt;nelz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 12:07 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      [url=&amp;quot;http://www.cis.upenn.edu/~bcpierce/unison/&amp;quot;]Unison[/url] sounds like a perfect fit for this job.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
I haven't tried the Windows version but use it many times each day for synchronising Linux boxes.</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104895#104895</comments>
                                        <author>nelz</author>
                                        <pubDate>Tue Mar 13, 2012 12:07 pm</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104895#104895</guid>
                                      </item>
                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104892#104892</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67972'&gt;nigel.taylor&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 11:44 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks for the quick response Dutch_Master.&lt;br /&gt;
&lt;br /&gt;
Yes I have a mountain of stuff to learn regarding the Linux OS let alone the web application that we are going to be running our website on.&lt;br /&gt;
&lt;br /&gt;
That is a great idea doing a dump of the outputs to a text file and then comparing them. I know there is then going to be files that I will need to get over to the Ubuntu server. Is there any tools that you would then recommend for then connecting to the machine to be able to copy the files over?&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Nigel</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104892#104892</comments>
                                        <author>nigel.taylor</author>
                                        <pubDate>Tue Mar 13, 2012 11:44 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104892#104892</guid>
                                      </item>
                                      <item>
                                        <title>Re: Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104889#104889</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 10:56 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Welcome. It depends on what you want to do with the results. If you want to update one folder from the other (that is: see if files on one are present on the other and if not copy them over) then rsync does the job perfectly. But if all you want to do is seeing if there's a difference between the folders, the diff tool has to be your choice. It compares 2 text files, and those text files can be generated by having the output of the ls command piped to a text file. Mind, it's commandline stuff, so get your DOS hat on and be prepared for a shock: bash (the standard Linux shell) is much more powerful then you'd ever imagined &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
On the Ubuntu machine, enter this in a terminal:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;ls /path/to/image/folder &amp;gt; lsimage.txt&lt;br /&gt;
ls /path/to/win-server/folder &amp;gt; win-image.txt&lt;br /&gt;
diff &amp;#91;options&amp;#93; lsimage.txt win-image.txt &amp;gt; diff.txt&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;See the man page for diff to get a sense of what options you need (on the Ubuntu machine)...&lt;br /&gt;
&lt;br /&gt;
Useful link: &lt;a href=&quot;http://ss64.com/bash/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://ss64.com/bash/&lt;/a&gt;</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104889#104889</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Tue Mar 13, 2012 10:56 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104889#104889</guid>
                                      </item>
                                      <item>
                                        <title>Compare Folders</title>
                                        <link>http://linuxformat.com/forums/viewtopic.php?p=104887#104887</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=67972'&gt;nigel.taylor&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 13, 2012 10:38 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      HI Guys,&lt;br /&gt;
&lt;br /&gt;
I am a complete newbie to Linux and have been chucked in the deepend.&lt;br /&gt;
&lt;br /&gt;
I have a network share with approx 10,000 images hosted on a Windows 2003 server that I need to compare with a folder full of images held on a Ubuntu Server 10.4 LTS.&lt;br /&gt;
&lt;br /&gt;
Does anyone know of any tools that compares folders between the two platforms? or any other approch that I can take to this?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
&lt;br /&gt;
Nigel</description>
                                        <comments>http://linuxformat.com/forums/viewtopic.php?p=104887#104887</comments>
                                        <author>nigel.taylor</author>
                                        <pubDate>Tue Mar 13, 2012 10:38 am</pubDate>
                                        <guid isPermaLink="true">http://linuxformat.com/forums/viewtopic.php?p=104887#104887</guid>
                                      </item></channel></rss>