The command I use on Synology is:
- Code: Select all
rsync -vratx -e "ssh -p666" --delete /volume1/homes/user15 lamia@example.ddns.net:LAMIA
The LAMIA entry in rsyncd.conf file is:
- Code: Select all
uid=root
gid=root
use chroot = no
secrets file = /etc/rsyncd.secrets
[LAMIA]
comment = "Pliki z LAMIA"
path = /home/lamia/LAMIA
read only = no
auth users = lamia
dont compress = *.mp3 *.cab *.gz *.avi *.vob *.mpg *.jpg *.zip *.bz2 *.iso *.rpm
hosts allow = aaa.bbb.ccc.ddd
And files are properly rsync`ed except one problem. uid, gid and mods are not properly rsync`ed. That is, all files have owner/group lamia/lamia and files and subdirs mods are set to 711.
What I am doing wrong? Anu idea?