Setup

Create Configuration

sudo su

vi /etc/rsyncd.conf


lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid

[code]
    path = /myFolderToShare
    comment = Data
    uid = root
    gid = root
    read only = yes
    list = yes
    auth users = john
    secrets file = /etc/rsyncd.secrets
    hosts allow = 192.168.1.0/255.255.255.0


Create Authentication File


vi /etc/rsyncd.secrets


Fill in the usernames and passwords:

john:password

chmod 600 /etc/rsyncd.secrets


Start Rsync

systemctl start rsync


Enable rsync at Bootup

systemctl enable rsync


Reference

ReferenceURL
Ubuntu - Set Up Rsync Serverhttps://blog.programster.org/ubuntu-set-up-rsync-server
  • No labels