All topics that I've come across involved rsync
over ssh
or rsync
using a user with restricted access.
I'm getting permission denied (13) errors as root. Here are my config files:
/etc/rsyncd.conf:
auth users = backup, root
secrets file = /etc/rsyncd.secrets
[backupdir]
path = /backupdir
/etc/rsyncd.secrets (file mode 600, owner root, group root):
backup:backuppassword
root:rootpassword
The bash script that performs the rsync:
export RSYNC_PASSWORD=rootpassword
rsync -a --verbose --delete rsync://root@myserver/backupdir mydestination
The bash script above and mydestination
reside on a Win XP machine and myserver
is a Debian server.
Best Answer
From the mainpage for
rsyncd.conf
:I.e., the usernames you choose for the rsync daemon are not linked to the system's users of the same name.
You can, however, set the user-ID and group-ID that the rsync daemon should use when accessing files (at least when you have started the daemon with root priviledges):
For example: