LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Rsync Question (https://www.linuxquestions.org/questions/linux-general-1/rsync-question-442935/)

stefaandk 05-08-2006 08:24 PM

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

WhatsHisName 05-09-2006 12:35 AM

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.

stefaandk 05-12-2006 11:12 PM

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


All times are GMT -5. The time now is 08:24 PM.