LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync: where the heck is the .conf file? (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-where-the-heck-is-the-conf-file-46440/)

vrillusions 02-20-2003 10:48 PM

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

speck 02-21-2003 12:38 AM

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

vrillusions 02-21-2003 08:40 PM

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)

speck 02-21-2003 09:52 PM

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

Speck

vrillusions 02-22-2003 01:10 PM

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.

speck 02-22-2003 05:47 PM

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


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