How can multiple computers be kept in sync using rsync *deleteriously* and *safely*?











up vote
0
down vote

favorite












Imagine perhaps 5 computers all trying to keep in sync a ~60 GB directory. One could be considered a central server if that matters.



I am aware of (and am using to various extents) Nextcloud, ownCloud and Dropbox). I am interested in how to use rsync in a deleterious and yet safe way. I know also that it could be mixed with inotify. Let's assume that the sync procedure of each computer happens perhaps every 10 minutes. Is the following a sane procedure to run every few minutes on each computer?



rsync -avz --progress --delete   www.example.org:~/rsyncbox   ~/rsyncbox
rsync -avz --progress --delete ~/rsyncbox www.example.org:~/rsyncbox


When I think about these multiple machines running these two commands every few minutes, while themselves making changes to the sync directory, it makes me feel like I am getting into Nash equilibrium ideas. What do you think? What would be a good approach?










share|improve this question






















  • If you do some changes in ~/rsyncbox just before the first line run, the changes will be lost.
    – Alvin Liang
    Nov 23 at 2:27










  • I don't understand the deleteriously in your question. Not sure what you exactly want, but if the idea is to have synced computers where anyone can work at the same time and the changes are propagated, then I am sure the approach will not work. Rather have your users connect to a server then, and have the server continuously backed up using rsync.
    – vanadium
    Nov 23 at 11:38















up vote
0
down vote

favorite












Imagine perhaps 5 computers all trying to keep in sync a ~60 GB directory. One could be considered a central server if that matters.



I am aware of (and am using to various extents) Nextcloud, ownCloud and Dropbox). I am interested in how to use rsync in a deleterious and yet safe way. I know also that it could be mixed with inotify. Let's assume that the sync procedure of each computer happens perhaps every 10 minutes. Is the following a sane procedure to run every few minutes on each computer?



rsync -avz --progress --delete   www.example.org:~/rsyncbox   ~/rsyncbox
rsync -avz --progress --delete ~/rsyncbox www.example.org:~/rsyncbox


When I think about these multiple machines running these two commands every few minutes, while themselves making changes to the sync directory, it makes me feel like I am getting into Nash equilibrium ideas. What do you think? What would be a good approach?










share|improve this question






















  • If you do some changes in ~/rsyncbox just before the first line run, the changes will be lost.
    – Alvin Liang
    Nov 23 at 2:27










  • I don't understand the deleteriously in your question. Not sure what you exactly want, but if the idea is to have synced computers where anyone can work at the same time and the changes are propagated, then I am sure the approach will not work. Rather have your users connect to a server then, and have the server continuously backed up using rsync.
    – vanadium
    Nov 23 at 11:38













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Imagine perhaps 5 computers all trying to keep in sync a ~60 GB directory. One could be considered a central server if that matters.



I am aware of (and am using to various extents) Nextcloud, ownCloud and Dropbox). I am interested in how to use rsync in a deleterious and yet safe way. I know also that it could be mixed with inotify. Let's assume that the sync procedure of each computer happens perhaps every 10 minutes. Is the following a sane procedure to run every few minutes on each computer?



rsync -avz --progress --delete   www.example.org:~/rsyncbox   ~/rsyncbox
rsync -avz --progress --delete ~/rsyncbox www.example.org:~/rsyncbox


When I think about these multiple machines running these two commands every few minutes, while themselves making changes to the sync directory, it makes me feel like I am getting into Nash equilibrium ideas. What do you think? What would be a good approach?










share|improve this question













Imagine perhaps 5 computers all trying to keep in sync a ~60 GB directory. One could be considered a central server if that matters.



I am aware of (and am using to various extents) Nextcloud, ownCloud and Dropbox). I am interested in how to use rsync in a deleterious and yet safe way. I know also that it could be mixed with inotify. Let's assume that the sync procedure of each computer happens perhaps every 10 minutes. Is the following a sane procedure to run every few minutes on each computer?



rsync -avz --progress --delete   www.example.org:~/rsyncbox   ~/rsyncbox
rsync -avz --progress --delete ~/rsyncbox www.example.org:~/rsyncbox


When I think about these multiple machines running these two commands every few minutes, while themselves making changes to the sync directory, it makes me feel like I am getting into Nash equilibrium ideas. What do you think? What would be a good approach?







rsync






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 at 2:16









BlandCorporation

278414




278414












  • If you do some changes in ~/rsyncbox just before the first line run, the changes will be lost.
    – Alvin Liang
    Nov 23 at 2:27










  • I don't understand the deleteriously in your question. Not sure what you exactly want, but if the idea is to have synced computers where anyone can work at the same time and the changes are propagated, then I am sure the approach will not work. Rather have your users connect to a server then, and have the server continuously backed up using rsync.
    – vanadium
    Nov 23 at 11:38


















  • If you do some changes in ~/rsyncbox just before the first line run, the changes will be lost.
    – Alvin Liang
    Nov 23 at 2:27










  • I don't understand the deleteriously in your question. Not sure what you exactly want, but if the idea is to have synced computers where anyone can work at the same time and the changes are propagated, then I am sure the approach will not work. Rather have your users connect to a server then, and have the server continuously backed up using rsync.
    – vanadium
    Nov 23 at 11:38
















If you do some changes in ~/rsyncbox just before the first line run, the changes will be lost.
– Alvin Liang
Nov 23 at 2:27




If you do some changes in ~/rsyncbox just before the first line run, the changes will be lost.
– Alvin Liang
Nov 23 at 2:27












I don't understand the deleteriously in your question. Not sure what you exactly want, but if the idea is to have synced computers where anyone can work at the same time and the changes are propagated, then I am sure the approach will not work. Rather have your users connect to a server then, and have the server continuously backed up using rsync.
– vanadium
Nov 23 at 11:38




I don't understand the deleteriously in your question. Not sure what you exactly want, but if the idea is to have synced computers where anyone can work at the same time and the changes are propagated, then I am sure the approach will not work. Rather have your users connect to a server then, and have the server continuously backed up using rsync.
– vanadium
Nov 23 at 11:38















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
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%2faskubuntu.com%2fquestions%2f1095261%2fhow-can-multiple-computers-be-kept-in-sync-using-rsync-deleteriously-and-safe%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2faskubuntu.com%2fquestions%2f1095261%2fhow-can-multiple-computers-be-kept-in-sync-using-rsync-deleteriously-and-safe%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

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei