Tested on MacOS against a Linux Mint Server with an rsyncd share.
The Configuration for the (Linux server) Daemon once can be found in rsyncd.conf
, and requires you create
/etc/rsyncd.scrt
containing the username and password pairs... The secrets file must not be world readable
and only accessible by the daemon that runs rsync.
On Mint, You can start rsync via Systemd using:
# systemctl start rsync
Note: Systemd script is
rsync
orrsyncd
depending on distro, and status of the script (reason for failure) can be found by executingsystemctl status rsync
.
The execution script is written in tcl for the expect
program and can be found in sync_rsync.tcl
.
Please substitute username, IP address and password to fit your needs.
You can run this like any shell script by making it executable (chmod a+x sync_rsync.tcl
).