I want a remote rsync server to receive backup files from Synology NAS running Hyper Backup w/ rsync module. Believing the claim that CentOS is a stable release, I installed CentOS 7.6 from minimal .iso & added packages including rsync-3.1.2-6.el7_6.1.x86_64 using "yum install rsync. Afterwards I was & am dumbfounded on how few articles are yielded from a Google search on this topic.
My steps: (abridged)
- Modified /etc/rsyncd.conf to use desired path, uid=<username>, gid=<username>, log file path, etc.
- Started & enabled rsyncd using systemctl start rsyncd & systemctl enable rsyncd
- Open port 873 in the firewall.
- telnet'ed <host_ip> 873 & received confirmation rsyncd is listening
- Configured Hyper Backup w/rsync module (Hyper Backup UNABLE TO MAKE COONECTION)
- Viewed /var/log/rsyncd.log (rsync DID NOT LOG CONNECTIONS FROM EITHER TELNET NOR HYPER BACKUP)
- Stopped rsyncd daemon
- Started rsync from command line using --daemon option (# rsync --daemon)
- Hyper Backup WORKED as EXPECTED
i found a couple of comments/articles regarding a confirmed bug in either systemd or rsync being launched using systemd. The articles seem to imply an issue in "/usr/lib/systemd/system/rsyncd.service" ConditionPathExists=/etc/rsyncd.conf" vs. "EnvironmentFile=/etc/sysconfig/rsyncd".
Conclusion: When rsyncd is launched from systemd /etc/rsyncd.conf IS NOT read. When running rsync --daemon from command line, rsync appears to be reading /etc/rsyncd.conf
I find absolutely NO documentation regarding /etc/sysconfig/rsyncd file or OPTIONS & it's format.
Please help!!!
Tanks