Tuesday, October 4, 2011

Using Rsync to synchronize files/folders from Windows to Linux with SSH tunnel


Rsync Server on Linux

1. Rsync can be found in Linux repository and is easy to install using yum or apt-get commands.
                >> yum install rsync
                >> apt-get install rsync

2. Create a file rsyncd.conf at /etc and add following lines
                >> nano /etc/rsyncd.conf
               [your_user_sync]
                path = /home/your_user/backup
                comment = backup
                uid = your_user
                gid = your_user
                read only = false
                auth users = your_user
                secrets file = /etc/rsyncd.secrets
Here your_user is the username in your Linux machine.