I just got a new fileserver and have copied the files off of my old fileserver onto this shiny new one.
Before I take my old filesever offline, I would like to compare the files on both machines to insure that nothing got corrupted during the copy process.
Is there a command that I can use to do this in one shot? I have been playing around with diff and the best I can do is to get it to give me a list of "common subdirectories", but it's not comparing the actual files. It took all night to copy the files so I'd think a real compare would take twice that long, and everything that I try with diff seems to run in a few seconds.
Frank Cox wrote:
I just got a new fileserver and have copied the files off of my old fileserver onto this shiny new one.
Before I take my old filesever offline, I would like to compare the files on both machines to insure that nothing got corrupted during the copy process.
Is there a command that I can use to do this in one shot? I have been playing around with diff and the best I can do is to get it to give me a list of "common subdirectories", but it's not comparing the actual files. It took all night to copy the files so I'd think a real compare would take twice that long, and everything that I try with diff seems to run in a few seconds.
Check out the "-r" option of diff.
Paul.
On Fri, 14 Jul 2006, Frank Cox wrote:
I just got a new fileserver and have copied the files off of my old fileserver onto this shiny new one.
Before I take my old filesever offline, I would like to compare the files on both machines to insure that nothing got corrupted during the copy process.
Is there a command that I can use to do this in one shot? I have been playing around with diff and the best I can do is to get it to give me a list of "common subdirectories", but it's not comparing the actual files. It took all night to copy the files so I'd think a real compare would take twice that long, and everything that I try with diff seems to run in a few seconds.
diff -r --brief directory1 directory2
On Fri, Jul 14, 2006 at 10:40:02AM -0600, Frank Cox wrote:
Is there a command that I can use to do this in one shot? I have been playing around with diff and the best I can do is to get it to give me a list of "common subdirectories", but it's not comparing the actual files. It took all night to copy the files so I'd think a real compare would take twice that long, and everything that I try with diff seems to run in a few seconds.
Try rsync -avcn. (The "n" will tell it to not actually do anything, just print what it would have done.) And the -c makes it do a checksum of every file.
Thanks guys.