The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Ignoring already copied files nvandyke UNIX for Dummies Questions & Answers 0 04-30-2008 04:39 PM
UNIX; Compare two files abhishek3598 UNIX for Advanced & Expert Users 1 11-06-2007 06:52 PM
Compare between Unix and Windows msahoud71 UNIX for Dummies Questions & Answers 3 05-23-2007 06:26 AM
Compare files across 2 UNIX boxes flattyre Shell Programming and Scripting 2 09-27-2006 07:21 PM
monitoring files copied onto hard disk abhi_abhijith High Level Programming 2 02-15-2006 10:51 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-02-2008
sravanreddym sravanreddym is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 2
how to compare all files in one unix box has been to copied to another unix box

Hi

our unix admin has copied all files from one unix box to new unix box. We just need to confirm that all the file systems are copied properly. How to validate.
  #2 (permalink)  
Old 07-02-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,976
this is maybe more a scripting thing... you can build checksums of all files on both machines and compare them...

thread moved from solaris to scripting.
  #3 (permalink)  
Old 07-02-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,211
Simplest way I can think of is "rsync -n"
  #4 (permalink)  
Old 07-02-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,976
Quote:
Originally Posted by reborg View Post
Simplest way I can think of is "rsync -n"
this checks file consistency?
  #5 (permalink)  
Old 07-02-2008
sravanreddym sravanreddym is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 2
how to compare all files in one unix box has been to copied to another unix box

Reborg thanks for your reply.

i dont have rsync installed on the box.

Hey duke

I am not good at scripting. Could you please let me know how to do check sums. Do you mean do a files count?

Thanks
Sravan
  #6 (permalink)  
Old 07-02-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,976
which version of solaris do you use?
  #7 (permalink)  
Old 07-02-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,211
Quote:
Originally Posted by DukeNuke2 View Post
this checks file consistency?
Dry run but it amounts to the same, ie. list the files that would have been copied to bring the two into sync. If the there are no files the systems are in sync.

You can get rsync from Sunfreeware - Freeware Open Source Software for Sun Microsystem's Solaris if you are able to install additional software, from memory you will also need popt and libgcc and depending on the version you may also need libiconv and libintl.
Closed Thread

Bookmarks

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0