Link to home
Start Free TrialLog in
Avatar of vamsi_uk
vamsi_uk

asked on

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
Avatar of Tintin
Tintin

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
Avatar of vamsi_uk

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks tintin