Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34

Thread: Comparing Files on remote servers

  1. #1

    Default Comparing Files on remote servers

    Dear all,
    I was copying my files on a remote server, lets' call it X, for some time and I knew that these files were backedup to a server Y.

    It looks like that now the backup process is broken and might be two - three files not the same in both servers (X and Y)

    I was wondering if you can suggest me a tool to search for file differences (compare files?) between the two servers .

    I would like to thank you in advance for your help

    Regards
    Alex

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    22,369

    Default Re: Comparing Files on remote servers

    Are these all openSUSE systems? Do you manage them all three? How are you copying to X? You are realy not very informative.
    Henk van Velden

  3. #3

    Default Re: Comparing Files on remote servers

    Quote Originally Posted by hcvv View Post
    Are these all openSUSE systems? Do you manage them all three? How are you copying to X? You are realy not very informative.


    Hi,
    I thought not more information would be needed as I think this boils down to "Find a way to compare two folder contents".

    I was copying to X with scp and later on rsync. How the copy between X and Y was done is not known.

    Regards
    Alex

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    22,369

    Default Re: Comparing Files on remote servers

    Even if information might show not to be needed in the end, you must be aware of the fact that other people around the world that are reading your post know nothing about what you have, do or see. When you want adequate help you better try to try to give them all you can think they might need then to not give them what you think they will not need.

    That might be difficult, because you even did not give me the things I asked for explicitly. I had three (3) questions You only gave something on the third one.

    I am still wating for information on the first two and in the mean time will add a new one: How do you access system Y (login using what, other ways of access)?
    Henk van Velden

  5. #5

    Default Re: Comparing Files on remote servers

    alaios wrote:
    > Dear all,
    > I was copying my files on a remote server, lets' call it X, for some
    > time and I knew that these files were backedup to a server Y.
    >
    > It looks like that now the backup process is broken and might be two -
    > three files not the same in both servers (X and Y)
    >
    > I was wondering if you can suggest me a tool to search for file
    > differences (compare files?) between the two servers .


    Why do you want to search for the differences? Why not just tell rsync
    to repeat the backup?

  6. #6
    dd NNTP User

    Default Re: Comparing Files on remote servers

    On 11/07/2012 02:46 PM, alaios wrote:
    > I thought not more information would be needed as I think this boils
    > down to "Find a way to compare two folder contents".


    as an example of why more info (like that which Henk asked for) is required:

    if X is openSUSE (or other Linux) and Y is openSUSE (or other Linux)
    (his first question), and you have access to both (his second question)
    and you are copying with rsync with switches to retain date/etc (his
    third question) then you could make a little script which would ls each
    and compare the two outputs with diff, to find differences.. simple.

    but, if X is openSUSE (or other Linux) and Y is Windows
    Server/Solaris/SPARC/etc then that won't work.

    and, his fourth question: if you access via remote desktop and need a
    GUI to do your server admin work, then that simple script gets . . .

    --
    dd

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Comparing Files on remote servers

    On 2012-11-07 14:46, alaios wrote:

    > Hi,
    > I thought not more information would be needed as I think this boils
    > down to "Find a way to compare two folder contents".


    No, an answer is impossible unless you say what operating system each
    machine runs and what type of access you have on each. For example, are
    they Linux, and do you have ssh access to them?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  8. #8

    Default Re: Comparing Files on remote servers

    It looks like that both systems run same os and kernel

    3.2.0-32-generic #51-Ubuntu SMP


    in both systems I have a access to files through ssh. Both directories return exactly the same number of megabytes which I think is a first indicator (even though not enough) that files might be identical.

    So what is the missing part here for proving that also?

    I would like to thank you in advance for your help

    Regards
    Alex

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Comparing Files on remote servers

    On 2012-11-09 16:26, alaios wrote:
    >
    > It looks like that both systems run same os and kernel
    >
    > 3.2.0-32-generic #51-Ubuntu SMP
    >
    >
    > in both systems I have a access to files through ssh. Both directories
    > return exactly the same number of megabytes which I think is a first
    > indicator (even though not enough) that files might be identical.


    Then I would log on both machines via ssh and run a checksum on the
    files, which you can then compare visually. Or create a checksum file
    (man md5sum) which you download to another machine and run there, if it
    is a bunch of files.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" (Minas Tirith))

  10. #10

    Default Re: Comparing Files on remote servers

    I ẃould like to thank you for your reply. The problem I see is that the files are so many that comparing one by one would take ages. In that case either should I use a graphic interface (that supports ssh) or even better that would pinpoint files that are different (and that because I guess that only few files would have differences if any=)


    Thanks again
    RegardsA


    Alex

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •