Questions tagged [lsyncd]

For use with the `lsyncd` file-synchronization tool.

lsyncd is a tool that uses inotify events to trigger rsync. It can be used to keep a remote directory synchronized with local changes. Home page.

29 questions
1
vote
0 answers

Having trouble with rsync version on mac when using it with lsyncd

I am trying to synchronize a folder on my mac with one on an ubuntu server 16.06 system that I built. The problem is with the rsync version. Here is what I did. I created a file in /var/log/lsyncd/ and called it lsyncd.conf.lua. The following are…
user3768804
  • 139
  • 1
  • 1
  • 15
1
vote
1 answer

Lsync not processing files in the correct order in a master-master/bi-directional setup

I'm using LSync to synchronize the web root for two separate CentOS 7 servers running Apache. So far, it seems to be running decently, but every so often, I notice that lsync doesn't process the files properly. An example of the issue I'm having -…
Justin
  • 1,959
  • 5
  • 22
  • 40
1
vote
1 answer

Use lsyncd to update a local folder with a remote source?

I've used lsyncd to sync a local folder to a server I own using rsyncssh with a config file like this: settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.status" } sync { …
dobleseis
  • 629
  • 2
  • 7
  • 12
0
votes
0 answers

LSYNCD excludeFrom issue (v2.2.2)

Lsyncd doesn't want to exclude files from exclude file, what i did wrong? It's due to outdated version? sync { default.rsync, source="/home/user/", target="user@host.com:/home/user/", delay = 5, delete = false, excludeFrom =…
user2455079
  • 420
  • 4
  • 16
0
votes
0 answers

Vaultwarden in Docker swarm with persistent storage on each worker node, issue

I have 4 nodes - one is manager and three are workers. On my three worker nodes I have configured lsyncd with rsync -u flag (so it is not syncing data if on the remote folder the version of file is newer) and delete=false. The daemon syncs…
Timophei
  • 1
  • 1
0
votes
0 answers

Unable to transfer the file permissions through Lsyncd to the Destination server?

While doing Lsyncd i am unable to transfer the file permissions and ownership of files in source server to the destination server. settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.status", …
0
votes
1 answer

lsyncd canot update mysql-bin.00001

I use lsyncd and lsyncd to send file to other server,.sql file is ok,but mysql-bin.00001 canot update. lsyncd.conf settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.status", inotifyMode =…
VenbillYu
  • 1
  • 1
0
votes
1 answer

LSYNC don't work when a destination host is unavailable

Is it possible that lsyncd keeps working when a destination node is unavailable on the network? I need to sync folders on different servers, but these servers are in an Azure Availability set (autoscale ec2 on AWS), so they can be turned on or off…
0
votes
1 answer

Understanding csync2 & lsyncd Syncing Mechanism

So I have two Servers configured for file replication. Imagine one being "Server1" and the other one is "Server2". I Configured lcyncd and csync2 on both nodes and sync work perfectly. I was wondering what happens at Server2 when I add new files to…
0
votes
1 answer

lsyncd does not delete files at the reciever side

I have successfully gotten lsyncd to work between two RHEL servers. Everything works great with 1 single exception. My expectation that is confirmed by documentation is that if the file doesn't exist on the destination, it will be deleted. What is…
devops
  • 1,121
  • 5
  • 20
  • 50
0
votes
1 answer

Lsyncd between two EC2 instances

I have two EC2 instances and i am trying to sync a directory between the two of them. I have set up the lsyncd service on one of the instances and was able to sync a directory to different directory on the same instance. Now i am trying to sync the…
user4559332
0
votes
1 answer

Synchronise database between 2 hosts

I build a mirror host for my web site. I use Lsyncd for the synchronisation of project files and it works perfectly. For the database, what is the best way to make a synchronisation between the master and the mirror server?
Mohamed Ben HEnda
  • 2,686
  • 1
  • 30
  • 44
0
votes
2 answers

Using lsync to sync apache webroot files - running into permission issues

I'm distributing load between two web servers, which means all of the Apache settings and vhosts are pretty much identical, and I wanted to make sure they stay that way by using LSync (or if there's another solution that helps with the problem I'm…
Justin
  • 1,959
  • 5
  • 22
  • 40
-1
votes
1 answer

Trouble with lsyncd on Unix server running Centos

I am trying to setup a simple lsyncd example on my Unix server running Centos. I am following this article. https://www.unixmen.com/how-to-sync-files-with-lsyncd/ I am sure I have followed the instructions correctly, however it is not syncing nor…
1
2