to compare total directory structure and get sizes of all f on two different servers

Hello every one,

Iam newbie to this forum and shell programming &scripting.

i needed to compare each and every folder of two separate servers.

Actually I have copied some directory structure from one server to second server, to build on second server the files all should be copied from server one to 2 ,if not build will not be successful.

for this i wanted to a write a shell script.can somebody help me regarding this ,it is very urgent.

with regards,
mannam srinivas

If the goal is to have the same files on both servers, try rsync

Hello era,

Thank you veru much for u r reply, is this rsync is a tool ?

we don't have any tools ,actually i am checking manually all the file sizes on different servers ,i need a script could you pls help regarding this.

it's vey urgent,can somebody help me regarding this.

with warm regards,
mannam srinivas

Hello era,
I found this tool helps me for my task.Thank you very much for your suggestion.

while installing rsync i am getting errors pls guide me how to solve threse errors.

The installation procedure i am following is as follows.

install procedure

Once you have it, as root:
./configure
make
make install
You can simply run rsync as a daemon, or you can have it started automatically by inetd. In /etc/services add:
rsync 873/tcp
and in /etc/inetd.conf add:
rsync stream tcp nowait root /usr/bin/rsync rsync --daemon --config=/etc/rsyncd.conf

After executiing the make command i am getting following error.
Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
Failed to create rounding.h!
*** Error exit code 1

Stop.[/b][/SIZE][/b]

could u pls suggest me the ways to proceed further.it's very urgent era.

with regards,
mannam srinivas.