Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Comparing directories on different servers

Posted on 2006-10-22
4
Medium Priority
?
368 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

618 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