Linux daemon sync storage
![linux daemon sync storage linux daemon sync storage](https://www.cloudwards.net/wp-content/uploads/2018/08/Dropbox-Sync-Folder-Slider2.png)
Let's call it SyncFiles: mkdir /opt/syncfilesĪnd for secure file transfer, we want a public-private key link for the transfer link that rsync uses, this is how to configure it: ssh-keygen -t rsa -f ~/rsync-key -N '' Backup/failover servers with the need for constant replicationįirst things first: we need to get all the dependencies installed on the 3 servers with this one-line command: apt update & apt -y install openssh-server rsync inotify-toolsĪfter that, let's create a specific folder that we want to sync.Load balanced file storage clusters/servers.A development environment, where constant file transfers are taking up a lot and/or too much time.I could see some potential for workflow improvement on these situations:
![linux daemon sync storage linux daemon sync storage](http://cdn.mos.cms.futurecdn.net/911649b52ed10869e3cd343e211698b5-1200-80.jpg)
All rsync traffic is supposed to be worked out over SFTP. All these 3 machines needed to be setup with the following software packages:Īlso noteworthy is that these machines are absolutely not connected through a private network. I needed to get myself a nice development environment at first so I started off 3 virtual servers which all run Ubuntu 16.04, my personal favourite. Rsync is a great solution, but having to run rsync manually would take a lot of unnecessary time away, right? And that is where inotify is for: real-time monitoring of your filesystem so that your files can be synced between multiple machines with the power of rsync! Well, I got the solution for you: with a little bit of thinking in an innovative way I have found the solution that might bring you onto the right path as well. They contain files that you want to have automatically synced when possible, because that would save a lot of time. So: you've got two or more clients and/or servers. Sync folders and files on Linux with rsync and inotify