I have finally been able to successfully rsync from a Synology DS410 to an Intel S4200E running Nas4Free 9.1. I thought I'd share how I got it set up because it's not entirely intuitive. No matter what I tried, I kept getting permissions errors. I tried any number of things to get a successful rsync: I tried setting up the same users/uids and groups/gids on the Nas4Free box as I did on the Synology; I created a "rsync" user in the "wheel" group and tried setting a folder up with 775 with rsync:wheel ownership, etc. All for nought. The key was to set the rsync module user id to root. Not that the files it creates on the Nas4Free box end up being owned by root; I can't tell what that really does, but once I changed the user id to root, everything started working with no permissions errors.
0. create an rsync user in group wheel. create the folder you want to backup to on the Nas4Free server; I used a subfolder of my main raid mounted as /mnt/raidm called backup (I created the folder logged in as admin, it automatically got 777 permissions) (you could just use the mount, e.g., /mnt/raidm)
1. enable rsync on the Nas4Free box: services -> rsync -> server, enable, save (accept all defaults including Guest setting), apply and restart
2. create rsync backup module: rsync -> server -> modules, name "backup", comment "backup", set path to your backup folder (e.g. /mnt/raidm/backup), enable List, set RW, and the critical piece for me, set user id to "root", everything else leave default. save, apply, restart rsync server.
3. on Syno NAS, create the data backup task: IP of the Nas4Free server, valid user id and password on the Nas4Free server (I used the rsync user I'd created, I don't even think the permissions of the user matter), make sure the module list comes back successfully; finish the wizard.
After that, no issues. I do see messages in the Nas4Free log regarding the Syno-specific backup database files, but the Syno NAS reports success and all the files are copied.
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
rsync from Synology
-
aol
- NewUser

- Posts: 3
- Joined: 30 Jan 2014 15:51
- Status: Offline
Re: rsync from Synology
Update: when you set the user id in the GUI to "root", you're saying, copy files using this user ID, so the files you copy over end up with owner root. This is the same as setting the uid in rsyncd.conf. I am SURE I tried doing this on an earlier iteration and it didn't work, but after I got things working with root, I went back and decided it probably was not a good idea to use root, so I tried changing it to the "rsync" backup user I'd created in group wheel, and it continued to work. So to amend my earlier success story, set the user id and group id in the modules GUI to a new user id that has access to the backup folder you specify. In my case, I was using /mnt/raidm/backup, which was owned by backup:wheel, with 777 permissions. The backup from Syno continues to work.
Then I went back and ALSO added auth users = rsync, set a secrets file = /path/to/rsyncd.secrets, added "rsync:password" to /path/to/rsyncd.secrets, and added hosts allow = 192.168.0.0/16 (or whatever you want) to restrict access. It's all working great now.
Then I went back and ALSO added auth users = rsync, set a secrets file = /path/to/rsyncd.secrets, added "rsync:password" to /path/to/rsyncd.secrets, and added hosts allow = 192.168.0.0/16 (or whatever you want) to restrict access. It's all working great now.