How to configure rsync as daemon on ubuntu 16.04

rsync

In this tutorial we will show you how to install and configure rsync as daemon) on ubuntu 16.04 server. Rsync basically use to synchronize from source file/folder to target file/folder, you can use it to synchronize from local environment or with different server. This tutorial we will make rsync server, so you can synchronize data from this rsync server.

Prerequisites

This article assumes you have at least basic knowledge of linux, know how to use the shell, root user or non-root user account with sudo privileges set up on your server.

Step 1 – Install rsync

Install rsync with apt command

Step 2 – Configure rsync daemon

Configure rsync config using nano , it will automatically create file  if not exist

Put this example config below , in this example we will open /home/backup directory with name backup, so it can accessed by host with ip 192.168.1.100

Step 3 – Start and enable at booting

After you configure in Step 2 , we will start the rsync daemon and automatically make it start when server boot

Start the daemon

Enable when server boot

 

Congratulations,  you have successfully configure rsync as daemon on ubuntu 16.04

 

You may also like...

2 Responses

  1. Camion says:

    There is one question which is forgotten by most sites who document de “How” : It is “Why should one configure rsync as daemon – since it is able to start the server side by itself through remote shell…”
    One reason might be, to preconfigure and limit what rsync will be able to touch, but are there other reasons linked with performances or so ?

    • admin says:

      Hi , thanks for visiting my site

      Using rsync daemon you can sync data more faster than using remote shell , because when using remote shell the data synced via ssh protocol it make overheat cpu process , but when using daemon the data will sync directly using rsync network protocol without encryption

Leave a Reply

Your email address will not be published. Required fields are marked *