LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-08-2006, 08:24 PM   #1
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Rep: Reputation: 30
Rsync Question


I am new to rsync but I followed this guide:
http://everythinglinux.org/rsync/

I can get things to work OK but it's doing something that doesn't seem right.

This is my rsyncd.conf file

motd file = /etc/rsyncd.motd
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

[simple_path_name]
path = /BACKUP/Rsync
comment = My Very Own Rsync Server
uid = nobody
gid = nobody
read only = no
list = yes
auth users = username
secrets file = /etc/rsyncd.scrt

On the client I start like this:

rsync --verbose --progress --stats --compress --rsh=/usr/bin/ssh --recursive --times --perms --links --delete \ --exclude
"*bak" --exclude "*~" \ /BACKUP/* hq:simple_path_name

It all connects OK, I'm doing this as root so it asks for my password and then starts copying files.

However it actually creates a subdir called "simple_path_name" in my root dir rather then copy files into /BACKUP/Rsync

Why does it do that?

Thanks
 
Old 05-09-2006, 12:35 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Quote:
rsync --verbose --progress --stats --compress --rsh=/usr/bin/ssh --recursive --times --perms --links --delete \ --exclude
"*bak" --exclude "*~" \ /BACKUP/* hq:simple_path_name
Itís doing exactly what you are instructing it to do.

rsyncd.conf configures/controls what can be served. It doesnít control simple point-to-point transfers.

You need to flip through the rsync man page and look at the examples.
 
Old 05-12-2006, 11:12 PM   #3
stefaandk
Member
 
Registered: Jun 2005
Distribution: Centos
Posts: 215

Original Poster
Rep: Reputation: 30
Well I been going at this for days now and I can't get it working.

it will always create the "simple_path_name" directory under the used user's home dir.

So what's the point of this entry then?

[simple_path_name]
path = /BACKUP/Rsync
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync question juanb Linux - General 10 01-28-2006 03:18 PM
rsync question kpachopoulos Linux - General 3 07-15-2005 03:33 PM
Question about rsync bgriesi Linux - Networking 4 12-31-2004 08:19 AM
Another Rsync question phatboyz Linux - Networking 2 07-02-2004 08:46 AM
rsync question falco365 Programming 4 05-25-2003 09:24 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration