Questions tagged [lsyncd]

20 questions
23
votes
6 answers

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 either server and need to be pushed to the other,…
dlo
  • 451
  • 1
  • 4
  • 14
10
votes
2 answers

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 devs to use their favorite IDEs on their host…
Scott Coldwell
  • 468
  • 5
  • 9
10
votes
4 answers

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 on both servers (no network access required to…
sbrattla
  • 1,456
  • 3
  • 26
  • 48
5
votes
2 answers

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. The size of all data is about 5 TB (steadily…
Barmi
  • 429
  • 1
  • 6
  • 14
2
votes
3 answers

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; exclude *.log; auto younger; } I verified that the…
user209180
  • 87
  • 1
  • 2
  • 6
1
vote
0 answers

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 disable file deletion (files deleted on the source…
DylanM
  • 113
  • 3
1
vote
2 answers

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 config: settings{ logfile = "/var/log/lsyncd.log", …
Anand Shrestha
  • 41
  • 4
  • 12
1
vote
2 answers

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 repositories. This was decided since the uptime on Azure…
Yanu312
  • 13
  • 4
1
vote
1 answer

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 restore it. lsyncd solves the first of these;…
Alex R
  • 121
  • 3
1
vote
3 answers

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.stat", statusInterval = 1, } sync{ …
Maca
  • 1,043
  • 2
  • 19
  • 30
1
vote
0 answers

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", statusInterval = 1, verbose =…
Matias Barrios
  • 203
  • 3
  • 12
0
votes
1 answer

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…
Anand Shrestha
  • 41
  • 4
  • 12
0
votes
2 answers

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 slave server. I am using a master/slave setup. So…
0
votes
0 answers

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 { default.rsync, source = '/xxxx/', …
0
votes
1 answer

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. lsyncd is pretty handy but I found some issues…
He Zhang
  • 1
  • 3
1
2