Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-07-2009, 10:09 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 7

Rep: Reputation: 0
How to configure rsync?

Can you guys tell me how to configure rsync on redhat linux?

I have installed rsync rpm package. I am looking for rsync file in /etc...But I could not find any file related to rsync in /etc... I can see one file in /etc/xinetd.d... thats it...

How do I set up ?

Thank you,
Old 12-07-2009, 10:12 PM   #2
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
The file is named /etc/rsyncd.conf, and its description is in the rsyncd.conf(5) man page.

On redhat you should be able to turn the rsyncd daemon on via the service or chkconfig utilities. It can be started/stopped explicitly as /etc/init.d/rsync start|stop|restart etc.

Last edited by jhwilliams; 12-07-2009 at 10:16 PM.
Old 12-07-2009, 10:35 PM   #3
LQ Newbie
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0

It really depends on what you want to do. Do you want to set up a server that serves up a specific directory for a specific user? Let's say you want to set up a module named "archive" that points to a directory "/usr/local/archive" so you can make sure you archive important data regularly. You can set up a user called "archie" with a group id of the same name if you want. This example below shows you what to put in /etc/rsyncd.conf. This is assuming the xinetd is set up properly and your firewall allows rsync from the client host to the server.

let's call the rsync server "serverA" and the archive repository "repoB".

With this example, on serverA, create a file called 'rsyncd.conf' in the /etc/ dir (i.e. /etc/rsyncd.conf) and edit it:

        uid = archie
        gid = archie
        use chroot = no
        read only = yes
           path = /usr/local/archive
This will enable the client machine to connect to the rsync server as user archie and specify "archive" as the module which simplifies things a little.

On repoB if you want to rsync to a directory called "/var/serverA/archive, the rsync command would be:

   rsync -av serverA::archive /var/serverA/archive/
And that should just about do it. Keep in mind rsync comes with a VERY useful man page as well so I would dig in there as well. I hope this at least gets you started!




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync solaris + rsync: fatal: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 03:23 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 04:08 AM
How to configure Rsync blck_kenzo Linux - Newbie 1 08-12-2009 10:46 PM
how to configure RSYNC in linux dhanju Linux - Software 1 02-04-2006 06:30 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 02:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration