LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-20-2003, 10:48 PM   #1
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Rep: Reputation: 25
rsync: where the heck is the .conf file?


ok, I want to set up some mirroring, so I figured I can use rsync and learn something along the way. So I think it is running because it is in the xinetd.d directory and the disabled option is set to no. I can't figure out how to test it unless I knew a share name on it. So I was looking for the .conf file and can't find it. I did a 'find / -name rsync' and only got the binary file and the one in the xinetd.d dir. The config file is supposed to be at /etc/rsyncd.conf but there's nothing there. do I just create it?

using mandrake 9.0
 
Old 02-21-2003, 12:38 AM   #2
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
If you just want to sync one slave box to a master box, you don't need to run rsync in daemon mode and you don't need an rsync.conf file. You can put the rsync commands in a script (running on the slave box) and rsync will rsh or SSH into the master box and mirror the data.

If you have SSH installed on both machines, it's pretty easy to set it up so rsync won't prompt for a password when the script is executed (look in the SSH man page for "authorized_keys" for an explanation, if you need it.)

Speck
 
Old 02-21-2003, 08:40 PM   #3
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Original Poster
Rep: Reputation: 25
so do I just setup another share in samba that points the direcorty I'm mirroring? then would the name I use to call it something like rsync machine:sharename /usr/bak (or whatever, I know there's some command options I should set as well, but the basic idea)
 
Old 02-21-2003, 09:52 PM   #4
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
You're using some words (Samba and share) that sound like one computer is running Windows. Is this correct?

Speck
 
Old 02-22-2003, 01:10 PM   #5
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Original Poster
Rep: Reputation: 25
no, they both are running Mandrake 9.0. I thought samba is used to share files between linux computers as well as windows.

Perhaps it would be a better question to ask is how exactly do I set this up? the backup computer is going to pull the data from the main computer. I just assumed you have to make shares in order for rsync to know where to get the files.

Last edited by vrillusions; 02-22-2003 at 01:13 PM.
 
Old 02-22-2003, 05:47 PM   #6
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
Yes, Samba can be used to share files between two Linux boxes, but normally it's purpose is to allow Windows boxes to access resources on a Linux box. The more common way to share files between two Linux (or Unix) boxes is with NFS.

Take a look at this link to see how to setup rsync+ssh. Also, the man page for rsync has examples spread throughout and it lists some important things to pay attention to (slash or no slash at the end of the directory, --delete, etc.)

Another program, lftp, exists that can perform a similar mirroring function as rsync, but it uses FTP instead. I think rsync is more robust and smarter when it comes to how it transfers the data, but lftp is a very good scriptable ftp program that could be another alternative for you.

Speck
 
  


Reply



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
Can rsync read passwords from a file ? vmniza Linux - Networking 1 06-10-2005 01:25 AM
How to have rsync skipp certain file typs phatboyz Linux - Networking 1 10-15-2004 02:23 PM
rsync password-file not working kmoffat Slackware 6 08-02-2004 10:41 PM
rsync.conf miss becks.lin Linux - Software 0 03-04-2004 02:24 AM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration