Unison - how to make it sync automatically (bidirectional)
I have a folder music
on my HDD and folder Music
in external HDD. I want these 2 folders to be synced (ie if I add/remove/edit something in one folder, the changes immediately reflects in another).
I think that Unison
could do this but I'm struggling setting Unison
to sync automatically. For now, I have to manually sync.
I've read that repeat=watch
should do the thing but I can't set it.
As you can see the value "watch" hasn't been saved.
I tried nano ~/.unison/Music HDD EXT HDD.prf
and manually set repeat
= watch
and tried to put some file into one folder but it didn't copied it into another.
Do you have any ideas?
18.04 sync unison
add a comment |
I have a folder music
on my HDD and folder Music
in external HDD. I want these 2 folders to be synced (ie if I add/remove/edit something in one folder, the changes immediately reflects in another).
I think that Unison
could do this but I'm struggling setting Unison
to sync automatically. For now, I have to manually sync.
I've read that repeat=watch
should do the thing but I can't set it.
As you can see the value "watch" hasn't been saved.
I tried nano ~/.unison/Music HDD EXT HDD.prf
and manually set repeat
= watch
and tried to put some file into one folder but it didn't copied it into another.
Do you have any ideas?
18.04 sync unison
add a comment |
I have a folder music
on my HDD and folder Music
in external HDD. I want these 2 folders to be synced (ie if I add/remove/edit something in one folder, the changes immediately reflects in another).
I think that Unison
could do this but I'm struggling setting Unison
to sync automatically. For now, I have to manually sync.
I've read that repeat=watch
should do the thing but I can't set it.
As you can see the value "watch" hasn't been saved.
I tried nano ~/.unison/Music HDD EXT HDD.prf
and manually set repeat
= watch
and tried to put some file into one folder but it didn't copied it into another.
Do you have any ideas?
18.04 sync unison
I have a folder music
on my HDD and folder Music
in external HDD. I want these 2 folders to be synced (ie if I add/remove/edit something in one folder, the changes immediately reflects in another).
I think that Unison
could do this but I'm struggling setting Unison
to sync automatically. For now, I have to manually sync.
I've read that repeat=watch
should do the thing but I can't set it.
As you can see the value "watch" hasn't been saved.
I tried nano ~/.unison/Music HDD EXT HDD.prf
and manually set repeat
= watch
and tried to put some file into one folder but it didn't copied it into another.
Do you have any ideas?
18.04 sync unison
18.04 sync unison
edited Dec 29 '18 at 11:16
Milano
asked Dec 29 '18 at 11:10
MilanoMilano
1496
1496
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The root of your problem here is a misunderstanding of what the graphical interface can do. You'll see in your screenshot that the repeat
option is only for the text interface only. That is because the graphical interface can only run unison once when you click GO.
To get the behavior you want, you'll need to use the text (command line) interface. Since you've put repeat=watch
in your profile, you'll just need to open up a terminal and run Unison from the command line with that profile:
unison Music HDD EXT HDD &
I would recommend a shorter profile name than Music HDD EXT HDD
;) . The &
is there to run Unison in the background (detached from that particular terminal). Then, since it looks like you want to run Unison very automatically, checkout this post on how to run that Unison command automatically when you login.
add a comment |
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',
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%2faskubuntu.com%2fquestions%2f1105331%2funison-how-to-make-it-sync-automatically-bidirectional%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The root of your problem here is a misunderstanding of what the graphical interface can do. You'll see in your screenshot that the repeat
option is only for the text interface only. That is because the graphical interface can only run unison once when you click GO.
To get the behavior you want, you'll need to use the text (command line) interface. Since you've put repeat=watch
in your profile, you'll just need to open up a terminal and run Unison from the command line with that profile:
unison Music HDD EXT HDD &
I would recommend a shorter profile name than Music HDD EXT HDD
;) . The &
is there to run Unison in the background (detached from that particular terminal). Then, since it looks like you want to run Unison very automatically, checkout this post on how to run that Unison command automatically when you login.
add a comment |
The root of your problem here is a misunderstanding of what the graphical interface can do. You'll see in your screenshot that the repeat
option is only for the text interface only. That is because the graphical interface can only run unison once when you click GO.
To get the behavior you want, you'll need to use the text (command line) interface. Since you've put repeat=watch
in your profile, you'll just need to open up a terminal and run Unison from the command line with that profile:
unison Music HDD EXT HDD &
I would recommend a shorter profile name than Music HDD EXT HDD
;) . The &
is there to run Unison in the background (detached from that particular terminal). Then, since it looks like you want to run Unison very automatically, checkout this post on how to run that Unison command automatically when you login.
add a comment |
The root of your problem here is a misunderstanding of what the graphical interface can do. You'll see in your screenshot that the repeat
option is only for the text interface only. That is because the graphical interface can only run unison once when you click GO.
To get the behavior you want, you'll need to use the text (command line) interface. Since you've put repeat=watch
in your profile, you'll just need to open up a terminal and run Unison from the command line with that profile:
unison Music HDD EXT HDD &
I would recommend a shorter profile name than Music HDD EXT HDD
;) . The &
is there to run Unison in the background (detached from that particular terminal). Then, since it looks like you want to run Unison very automatically, checkout this post on how to run that Unison command automatically when you login.
The root of your problem here is a misunderstanding of what the graphical interface can do. You'll see in your screenshot that the repeat
option is only for the text interface only. That is because the graphical interface can only run unison once when you click GO.
To get the behavior you want, you'll need to use the text (command line) interface. Since you've put repeat=watch
in your profile, you'll just need to open up a terminal and run Unison from the command line with that profile:
unison Music HDD EXT HDD &
I would recommend a shorter profile name than Music HDD EXT HDD
;) . The &
is there to run Unison in the background (detached from that particular terminal). Then, since it looks like you want to run Unison very automatically, checkout this post on how to run that Unison command automatically when you login.
answered Dec 31 '18 at 3:38
Mike PierceMike Pierce
208111
208111
add a comment |
add a comment |
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.
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%2f1105331%2funison-how-to-make-it-sync-automatically-bidirectional%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