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