Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [lsyncd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
45 views

Auto sync folders on linux server

My problem statement is how to auto sync /home/username/script folder to /var/www/html. So whenever files under script folder are updated then it will update them in destination folder, and also chown ...
user avatar
0 votes
0 answers
146 views

lsyncd include specific files exclude rest

I am using lsyncd version 2.2.2. here is my current code. settings { logfile = "/etc/lsyncd.log", statusFile = "/etc/lsyncd.status", insist = true, } sync { default.rsyncssh, ...
user avatar
0 votes
0 answers
2k views

Lsyncd runs but does not update files

So I installed the daemon and configure it as : matias@~ $ cat /etc/lsyncd/lsyncd.conf.lua settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/tmp/lsyncd.stat", ...
user avatar
1 vote
0 answers
2k views

Backup best practice with lsyncd: delete or not delete

I have set up a backup of some working folders of a server (running with Centos 7) to a remote disk using lsyncd. It's great, however I'm quite undecided about what to do about file deletion: If I ...
user avatar
  • 113
1 vote
2 answers
4k views

lsyncd taking time to sync files

lsyncd sometimes takes more than 15 minutes to sync file from remote server to local server. Latency is fine, probably process to. What could be the further reasons for late syncing ? My lsyncd ...
user avatar
0 votes
1 answer
2k views

Lsyncd exclude files or folders not working

I am using lsyncd for live syncing between master and slave and I want to exclude files like .htaccess and git files to slave server. I have configured like this: sync { default.rsync, source="/...
user avatar
-1 votes
1 answer
49 views

Website .htaccess redirection loop issue [closed]

I have my news website hosted in US and it is being managed by cloudfare. I have placed one local server in Nepal as well for faster serving of web pages. MYSql replication and web content sync is ...
user avatar
0 votes
2 answers
1k views

lsyncd not excluding files in the lsyncd.conf files

I have searched the internet but could not find an answer to my problem with lsyncd. I am working on a WordPress project and basically I need to exclude a few files from updating/copying over to the ...
user avatar
0 votes
0 answers
2k views

lsyncd dumping every file transferred to log

I have lsyncd configured thus: settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/tmp/lsyncd.stat", statusInterval = 1, verbose = false, } sync { ...
user avatar
1 vote
2 answers
2k views

Is it possible to keep two SVN servers synchronized with each commit and both with read/write rights?

We currently have a local server that is used as our main SVN repository for a team of developers. We are planning to setup an Azure VM which will be used as the main repository for our SVN ...
user avatar
  • 13
4 votes
2 answers
970 views

Live file syncronization across multiple Linux servers with millions of files and directories

What is the best way to synchronize huge data of a running production server? Our server has over 20 million files (small files with 10k and bigger files up to 50MB) stored in 1 millon directories. ...
user avatar
  • 419
0 votes
1 answer
518 views

Synchronize files to webserver by lsyncd

I have two webapp, old one is WS1 and the new version is WS2. Now I want to synchronize pictures/attachments from WS1 to WS2 to keep both running. I found some tools like lsyncd / unison / GlusterFS. ...
user avatar
0 votes
1 answer
3k views

How to change lsync log level or completely disable it?

I'm using lsync for incremental backup. After 6 month it generated about 6GB log file in /var/log/lsyncd/lsyncd.log. I decide to change log level to reduce log generation. there is an option '-log' ...
user avatar
0 votes
1 answer
632 views

Keeping multiple Apache servers in sync

Overview Currently my company runs 5 web servers that hook into 1 DB/Fileshare server. The DB/Fileshare server uses NFS to mount on the 5 webservers so we only have to update the code once because ...
user avatar
  • 59
1 vote
1 answer
612 views

Is there a good way to combine the incremental behavior of rdiff-backup with the inotify behavior of lsyncd?

I'm trying to backup a directory (my Zotero data, in particular) whenever it changes (a la syncing with drop box); I would also like to keep a history of backups in case I delete something and want to ...
user avatar
  • 121
2 votes
3 answers
7k views

csync2 Config command failed error

I've installed csync2 on two nodes with the following config: nossl * *; group cluster { host node1; host (node2); # Slave host key /etc/csync2/csync2.key; include /home; ...
user avatar
10 votes
2 answers
4k views

Vagrant synced folders aren't case sensitive

For our web stack, we are moving from a Windows Server to CentOS. To facilitate development, we're utilizing Vagrant to run CentOS VMs locally. We're using Vagrant's Synced Folders feature to allow ...
user avatar
1 vote
3 answers
9k views

Lsyncd 2.0.4 : excluding a file from syncing

I want to prevent my robots.txt file from syncing to the front end server. Here is my /etc/lsyncd.conf file: settings = { logfile = "/tmp/lsyncd.log", statusFile = "/tmp/lsyncd....
user avatar
  • 1,043
9 votes
4 answers
4k views

Is GlusterFS a good pick for keeping webservers in sync?

I've got 2 webservers, with the chance of having to add more servers along the way. Right now I keep these servers in synch using lsyncd + csync2. It works well performance wise because all files are ...
user avatar
  • 1,434
23 votes
6 answers
10k views

Bidirectional real-time sync of large file tree between two distant linux servers

By large file tree I mean about 200k files, and growing all the time. A relatively small number of files are being changed in any given hour though. By bidirectional I mean that changes may occur on ...
user avatar
  • 451