Step 8: Start the client-side from the client's home directory $.
#Linux sync folders between servers code
Create one text file with some content in it, put it under code directory to test tool. Step 7: Now create a new directory in home directory with any name you like, I am creating a new directory named 'code'. 10:44:15 INFO Listening on 49172, version unspecified Step 6: Start the server-side from the server's home directory $. Step 5: Copy both to your remote home directory (or some other directory on your path, e.g. Step 4: Make the mirror file executable $ chmod u+x mirror
Step 3: Download the latest mirror's executable to your home directory (or some other directory on your path, e.g. The mirror will use the built-in Java WatchService API if you don't have watchman installed, and it will basically work, but the JDK-provided WatchService implementations are not that great: the Linux implementation is buggy.
#Linux sync folders between servers install
If java is not installed, execute below command to install java 8.ġ) On Debian based operating system (Ubuntu, Debian etc.)Ģ) On RPM based operating system (RHEL, CentOS, Fedora etc.) $ sudo yum update To check already installed java version, execute "java -version" command. If a file changes, it retransmits the whole file instead of trying to diff only what changed. No Super-efficient diff/transmission logic like rsync.Not Support for huge files more than 100MB.No Merge/long-duration disconnected support.doppleganger (an internal tool) is real-time, but not two-way.sshfs is too slow and doesn't support inotify.lsyncd is real-time, but does not officially support two-way.Below is its comparison with similar existing tools available in the market. There are many tools available to sync directory like lsyncd, but what makes mirror unique is that it is two-way: it simultaneously syncs both laptop-to-desktop as well as desktop-to-laptop, in real-time. desktop+laptop) development workflow where you want to run a command-line compile/build process on a powerful/dedicated desktop, but still edit files remotely on a laptop. It is built to support two-way real-time sync between directory exists on the different machine. We will go through one such tool mirror in this article.
As a computer programmer, It must have happened many times that you need a system or tool that sync two directories in real-time and two way.