Can lsyncd be used to sync multiple source directories on different machines to one dest directory?What makes Erlang suitable for soft real-time applications?How to play YouTube videos in sync on multiple clients?Can i sync a Google Fusion table with a public dropbox document?How to communicate between processes in realtime Linux?Real-time video “buffering” to html5 videoUse lsyncd to update a local folder with a remote source?Preserving ownership of file with Lsyncdlsyncd cant use dynamic backup suffixUnderstanding csync2 & lsyncd Syncing MechanismPseudo real-time data stream javascript and php

What is the maximum number of net attacks that one can make in a round?

Is it possible for a vehicle to be manufactured without a catalytic converter?

Why am I getting a strange double quote (“) in Open Office instead of the ordinary one (")?

How does the Around command at zero work?

Can I utilise a baking stone to make crepes?

Moving points closer to polyline using ModelBuilder?

Why didn't Voldemort recognize that Dumbledore was affected by his curse?

What aircraft was used as Air Force One for the flight between Southampton and Shannon?

Why not invest in precious metals?

How is the excise border managed in Ireland?

How to handle (one's own) self-harm scars (on the arm), in a work environment?

Non-aqueous eyes?

Why does logistic function use e rather than 2?

Wooden cooking layout

Should I ask for an extra raise?

Print lines between start & end pattern, but if end pattern does not exist, don't print

What is inside of the 200 star chest?

Traversing Oceania: A Cryptic Journey

Is it possible to have 2 different but equal size real number sets that have the same mean and standard deviation?

How to hide an urban landmark?

60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race

LuaLaTex - how to use number, computed later in the document

Writing an augmented sixth chord on the flattened supertonic

How to safely destroy (a large quantity of) valid checks?



Can lsyncd be used to sync multiple source directories on different machines to one dest directory?


What makes Erlang suitable for soft real-time applications?How to play YouTube videos in sync on multiple clients?Can i sync a Google Fusion table with a public dropbox document?How to communicate between processes in realtime Linux?Real-time video “buffering” to html5 videoUse lsyncd to update a local folder with a remote source?Preserving ownership of file with Lsyncdlsyncd cant use dynamic backup suffixUnderstanding csync2 & lsyncd Syncing MechanismPseudo real-time data stream javascript and php






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















Here is my problem:



I have multiple servers which are processing video data. They create video files and manifest files in real time, locally, in a /streams directory. Each stream has a name. The streams directory contains directories for all stream names that a server is processing. The file system will look something like this:



/streams/user1/stream/manifest1.m3u8
/streams/user1/stream/manifest2.m3u8
/streams/user1/stream/master_manifest.m3u8
/streams/user1/stream/<lots of video files>


I want to sync these to a remote directory, but here is the catch:



another server could, in the future, or may have in the past, already processed a stream for "user1" and hence when I want to sync to the remote directory which contains all of the streams, there will be a clash. In this case, I'd like a new directory to be created like so:



/streams/user1/stream2/manifest.m3u8
/streams/user1/stream2/manifest2.m3u8
/streams/user1/stream2/master_manifest.m3u8
/streams/user1/stream2/<lots of video files>


i.e, they get put in "user1" folder still but a new "stream" directory is created, called stream2.



A new stream folder should only be created when the master_manifest.m3u8 file is added, since that only needs to be created once and it describes a single unique stream by 1 user.



Is this kind of behaviour possible with lsyncd?










share|improve this question




























    0















    Here is my problem:



    I have multiple servers which are processing video data. They create video files and manifest files in real time, locally, in a /streams directory. Each stream has a name. The streams directory contains directories for all stream names that a server is processing. The file system will look something like this:



    /streams/user1/stream/manifest1.m3u8
    /streams/user1/stream/manifest2.m3u8
    /streams/user1/stream/master_manifest.m3u8
    /streams/user1/stream/<lots of video files>


    I want to sync these to a remote directory, but here is the catch:



    another server could, in the future, or may have in the past, already processed a stream for "user1" and hence when I want to sync to the remote directory which contains all of the streams, there will be a clash. In this case, I'd like a new directory to be created like so:



    /streams/user1/stream2/manifest.m3u8
    /streams/user1/stream2/manifest2.m3u8
    /streams/user1/stream2/master_manifest.m3u8
    /streams/user1/stream2/<lots of video files>


    i.e, they get put in "user1" folder still but a new "stream" directory is created, called stream2.



    A new stream folder should only be created when the master_manifest.m3u8 file is added, since that only needs to be created once and it describes a single unique stream by 1 user.



    Is this kind of behaviour possible with lsyncd?










    share|improve this question
























      0












      0








      0








      Here is my problem:



      I have multiple servers which are processing video data. They create video files and manifest files in real time, locally, in a /streams directory. Each stream has a name. The streams directory contains directories for all stream names that a server is processing. The file system will look something like this:



      /streams/user1/stream/manifest1.m3u8
      /streams/user1/stream/manifest2.m3u8
      /streams/user1/stream/master_manifest.m3u8
      /streams/user1/stream/<lots of video files>


      I want to sync these to a remote directory, but here is the catch:



      another server could, in the future, or may have in the past, already processed a stream for "user1" and hence when I want to sync to the remote directory which contains all of the streams, there will be a clash. In this case, I'd like a new directory to be created like so:



      /streams/user1/stream2/manifest.m3u8
      /streams/user1/stream2/manifest2.m3u8
      /streams/user1/stream2/master_manifest.m3u8
      /streams/user1/stream2/<lots of video files>


      i.e, they get put in "user1" folder still but a new "stream" directory is created, called stream2.



      A new stream folder should only be created when the master_manifest.m3u8 file is added, since that only needs to be created once and it describes a single unique stream by 1 user.



      Is this kind of behaviour possible with lsyncd?










      share|improve this question














      Here is my problem:



      I have multiple servers which are processing video data. They create video files and manifest files in real time, locally, in a /streams directory. Each stream has a name. The streams directory contains directories for all stream names that a server is processing. The file system will look something like this:



      /streams/user1/stream/manifest1.m3u8
      /streams/user1/stream/manifest2.m3u8
      /streams/user1/stream/master_manifest.m3u8
      /streams/user1/stream/<lots of video files>


      I want to sync these to a remote directory, but here is the catch:



      another server could, in the future, or may have in the past, already processed a stream for "user1" and hence when I want to sync to the remote directory which contains all of the streams, there will be a clash. In this case, I'd like a new directory to be created like so:



      /streams/user1/stream2/manifest.m3u8
      /streams/user1/stream2/manifest2.m3u8
      /streams/user1/stream2/master_manifest.m3u8
      /streams/user1/stream2/<lots of video files>


      i.e, they get put in "user1" folder still but a new "stream" directory is created, called stream2.



      A new stream folder should only be created when the master_manifest.m3u8 file is added, since that only needs to be created once and it describes a single unique stream by 1 user.



      Is this kind of behaviour possible with lsyncd?







      real-time lsyncd






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 18:47









      toastedDelitoastedDeli

      350118




      350118






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55327269%2fcan-lsyncd-be-used-to-sync-multiple-source-directories-on-different-machines-to%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55327269%2fcan-lsyncd-be-used-to-sync-multiple-source-directories-on-different-machines-to%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript