How to keep permissions from rsync server?

Louise Hoffman louise.hoffman at gmail.com
Sat Jul 29 19:15:36 GMT 2006


Dear readers,

Does anyone know how I can keep the file permissions on the
destination side when I sync?

This is what I have done so far.

In /etc/rsyncd.conf on the server have I:
-------------------------------------------------------
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock

[server]
   path = /
   uid = root
   gid = root
   read only = yes
   list = no
   auth users = root
   hosts allow = 172.20.10.0
   secrets file = /etc/rsyncd.scrt
-------------------------------------------------------

When I want to copy everything from the server to my onw computer, I write:

rsync -avH --delete --delete-excluded
--exclude-from=/home/louise/.rsync-exclude-server
root at 172.20.0.1::server /home/louise/backup

So my question is; How I get rsync to keep the file permissions on the
destination side? =)

Hugs,
Louise


More information about the rsync mailing list