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


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting to compare total directory structure and get sizes of all f on two different servers
# 1  
Old 04-04-2008
Bug 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
# 2  
Old 04-05-2008
If the goal is to have the same files on both servers, try rsync
# 3  
Old 04-07-2008
Bug

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
# 4  
Old 04-07-2008
Bug

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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare Only "File Names" in 2 Files with file lists having different directory structure

I have a tar arcive arch_all.tar.gz and 4 batched tar archive . These batches are supposed to have all the files form arch1.all.tar.gz arch1_batch1.tar.gz arch1_batch2.tar.gz arch1_batch3.tar.gz arch1_batch4.tar.gz my issue is that the directory structure in "arch_all.tar.gz" is... (6 Replies)
Discussion started by: sumang24
6 Replies

2. Shell Programming and Scripting

Script to compare file sizes

I need to write a bash script larger X Y that compares the sizes of two specified files X and Y, and reports which file is larger. For example, if X is larger, the output should be "File X is larger", while if Y is larger, the output should be "File Y is larger". If the files are exactly the... (3 Replies)
Discussion started by: julia_21436
3 Replies

3. UNIX for Dummies Questions & Answers

Compare two file sizes.

Hi everyone! I need to compare two file sizes. One of them (size) will be stored in a flat file and the other coming from a listed file. I can now get the first file size using: SIZE=`ls -l $DOCTYPE | awk '{print $5}'` 1. How can I store this value in a flat file? 2. How... (2 Replies)
Discussion started by: mrreds
2 Replies

4. HP-UX

compare file percent sizes

I need to get a file size and compare it to a previous day file size. If it's larger or smaller by 50 percent I'll replace the new with the old. I know how to get the file sizes but do not know how to calculate if it's 50 percent difference. Thanks for your help. (2 Replies)
Discussion started by: jkuchar747
2 Replies

5. Solaris

Apache modules different sizes on 2 servers

Hi I have built 2 modules on 2 different servers (both nodes in a cluster) and the files sizes are different for the same module on each server (size in bytes): Server1: 45592 mod_deflate.so Server2: 45540 mod_deflate.so Server1: 38400 mod_headers.so Server2: 38368 mod_headers.so ... (3 Replies)
Discussion started by: skewbie
3 Replies

6. Solaris

directory compare in two different servers

How can we get the directory tree along with the size in two different servers and find the difference between the list..?? Eg, Server1 dirTree1 -size Server 2 dirTree2 -size how can we find the directory tree with its size, and find the difference, where the servers are different... (1 Reply)
Discussion started by: vikram3.r
1 Replies

7. Shell Programming and Scripting

how to compare file sizes

hi ls -l * | sed 's/\+/ /g' | cut -f5 -d " " >out1 ls -l * | sed 's/\+/ /g' | cut -f5 -d " " >out2 diff out1 out2 i tried this it will work fine and i can see difference but i need a script which should neglect, if the difference b/w files is small and it should display... (5 Replies)
Discussion started by: revenna
5 Replies

8. UNIX for Advanced & Expert Users

MV files from one directory structure(multiple level) to other directory structure

Hi, I am trying to write a script that will move all the files from source directory structure(multiple levels might exist) to destination directory structure. If a sub folder is source doesnot exist in destination then I have to skip and goto next level. I also need to delete the files in... (4 Replies)
Discussion started by: srmadab
4 Replies

9. UNIX for Dummies Questions & Answers

Copying a Directory Structure to a new structure

Hi all Is it possible to copy a structure of a directory only. e.g. I have a file with the following entries that is a result of a find :- /dir1/dir2/file.dbf /dir1/dir2/dir3/file1.dbf /dir1/file.dbf I want to copy these to a directory and keep the structure however starting at a new dir... (8 Replies)
Discussion started by: jhansrod
8 Replies

10. Shell Programming and Scripting

compare file sizes

Is there a command that will return the name of the largest file within a directory? If so, can I set the returned filename into a variable? (4 Replies)
Discussion started by: joli
4 Replies
Login or Register to Ask a Question