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?
rsync
add a comment |
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?
rsync
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
add a comment |
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?
rsync
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
rsync
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
add a comment |
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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%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
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
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