LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
How to configure rsync?


Hi,
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, 11:12 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
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 11:16 PM.
 
Old 12-07-2009, 11:35 PM   #3
bit-head
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
rsyncd.conf

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:

Code:
        uid = archie
        gid = archie
        use chroot = no
        read only = yes
        [archive]
           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:

Code:
   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!

Cheers!

bit-head
 
  


Reply


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 + ld.so.1: rsync: fatal: libiconv.so.2: open failed: xxx_anuj_xxx Solaris / OpenSolaris 25 02-23-2012 04:23 AM
Could I run rsync to download files from a server without rsync daemon? Richard.Yang Linux - Software 1 09-18-2009 05:08 AM
How to configure Rsync blck_kenzo Linux - Newbie 1 08-12-2009 11:46 PM
how to configure RSYNC in linux dhanju Linux - Software 1 02-04-2006 07:30 AM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM


All times are GMT -5. The time now is 06:31 PM.

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