Force lsyncd to sybc NOW

591 Views Asked by At

I'm using lsyncd to mirror a local development directory structure with a remote server. I'm editing files locally (with pycharm) and wait for them to be pushed unto the server when I'm done with a given change.

Is there a way to force the lsyncd daemon to perform a sync now, not waiting for it's delay period to end, through the command line?

Thanks

1

There are 1 best solutions below

1
On

Set the delay time in the lsyncd config to a small number. I used to use lsyncd for exact this job, and I think setting it to zero worked fine then (you probably wouldn't want that for lots of files getting updated by a script, or something, but it's fine for files being hand edited).