?
Solved

Comparing directories on different servers

Posted on 2006-10-22
4
Medium Priority
?
364 Views
Last Modified: 2010-04-21
Hi, I just wanted to know if i use rsync to synchronize two directories on two different servers.. for example server1:/export/home and server2:/export/home, how can i do that.

thank you
vamsi
0
Comment
Question by:vamsi_uk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 17791914
Your subject says "compare", but your question says "synchronize".  Which is it?

To synchronize, do

rsync -a --delete /export/home/ server2:/export/home

to compare, do

rsync -na --delete /export/home/ server2:/export/home
0
 
LVL 4

Author Comment

by:vamsi_uk
ID: 17792045
I have put rsync command to run everynight at 2AM and kill it at 8AM, and i wanted to check how much it has got synchronized between the two servers. So i thought i need to compare both the directories to see how much data got synchronized.
0
 
LVL 48

Accepted Solution

by:
Tintin earned 200 total points
ID: 17792166
Add -v and --stats to get more details, eg:

rsync -av --stats --delete /export/home server2:/export/home
0
 
LVL 4

Author Comment

by:vamsi_uk
ID: 17794182
thanks tintin
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question