Setup the Rsync Daemon
August 01, 2024
Installation on a Debian based system is as simple as this...
sudo apt install rsync
Example Configuration
The configuration file can be found at /etc/rsyncd.conf
sudo nano /etc/rsyncd.conf
Here is an example configuration
uid = 0
gid = 0
use chroot = yes
max connections = 4
syslog facility = local5
[Test]
path = /srv/Test/
comment = Rsync Test
read only = false
[Test]is the name of the share. For example when rsyncing to or from this you would usersync 10.0.0.5::Test/- path is the path to where you want the other system to rsync to and from
commentis just quite simply a comment- If
read onlyis set to true then you can only pull files from the path specified above. When set to false you can push and pull.
Enable and Start the Service
sudo systemctl enable --now rsync
Check the Service
sudo systemctl status rsync
You should see a line showing the daemon running on TCP 873
Was this post helpful?
Comments
You need to be logged in to comment.
Log In to CommentNo comments yet. Be the first to share your thoughts!