Questions tagged [lsyncd]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
324 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, ...
Armen Geo's user avatar
1 vote
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", ...
Matias Barrios's user avatar
1 vote
0 answers
3k 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 ...
DylanM's 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 ...
Anand Shrestha's user avatar
0 votes
1 answer
3k 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="/...
Anand Shrestha's user avatar
-1 votes
1 answer
71 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 ...
Anand Shrestha's 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 ...
pbroderi31's 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 { ...
Vector Gorgoth's 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 ...
Yanu312's user avatar
  • 13
5 votes
2 answers
1k 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. ...
Barmi's user avatar
  • 439
0 votes
1 answer
624 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. ...
He Zhang's user avatar
0 votes
1 answer
4k 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' ...
Mohammad Ali Akbari's user avatar
0 votes
1 answer
665 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 ...
go0n's user avatar
  • 59
1 vote
1 answer
670 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 ...
Alex R's 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; ...
user209180's 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 ...
Scott Coldwell's 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....
Maca's user avatar
  • 1,043
10 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 ...
sbrattla's user avatar
  • 1,558
24 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 ...
dlo's user avatar
  • 461