Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsync 2.5.6 questions for solaris 8.

Status
Not open for further replies.

christhomas1977

Technical User
Apr 25, 2003
18
0
0
GB
Hi all,

I am reletively new to rsync so I wonder if people could help.

I have 2 servers (solaris 8), and want to rsync certain directories from one server to the other.

My questions are :

I only want to rsync data that has changed since the last rsync was run. How do I set this up.

Also how do I exclude directories or files that I don't want rsynced etc.

Thanks for all your help

regards

Chris
 
First, rsync only updates data that has changed. That is the nature of the program. If nothing has changed on the source then no changes will be made on the destination.

Here are some fairly simple steps. Your milage might vary.

On the master server:
-----------------------

Set up a /etc/rsyncd.conf file. Might look something like:
Code:
[my-master]
  path = /path/to/be/rsyncd
  comment = Master copies of files
  exclude = *BAD *~
Start the daemon:
Code:
rsync --daemon

On the client:
------------------
Code:
rsync -avz master-server::my-master /path/to/rsync

If you don't want to set up an rsync server change your command on the client machine to something like:
Code:
sync -avz master-server:/path/to/be/rsyncd/ /path/to/rsync
This will use rsh instead (the difference between : and :: in the source location). You can use ssh by including '-e ssh' in the command line.

Checkout the rsync and rsync.conf man pages for more info.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top