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;
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
add a comment |
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
add a comment |
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
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
real-time lsyncd
asked Mar 24 at 18:47
toastedDelitoastedDeli
350118
350118
add a comment |
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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