• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

Comparing directories on different servers

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
vamsi_uk
Asked:
vamsi_uk
  • 2
  • 2
1 Solution
 
TintinCommented:
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
 
vamsi_ukAuthor Commented:
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
 
TintinCommented:
Add -v and --stats to get more details, eg:

rsync -av --stats --delete /export/home server2:/export/home
0
 
vamsi_ukAuthor Commented:
thanks tintin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now