Unison - how to make it sync automatically (bidirectional)












0














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.



enter image description here



enter image description here



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?










share|improve this question





























    0














    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.



    enter image description here



    enter image description here



    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?










    share|improve this question



























      0












      0








      0


      1





      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.



      enter image description here



      enter image description here



      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?










      share|improve this question















      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.



      enter image description here



      enter image description here



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 29 '18 at 11:16

























      asked Dec 29 '18 at 11:10









      Milano

      1396




      1396






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer





















            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            0














            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.






            share|improve this answer


























              0














              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.






              share|improve this answer
























                0












                0








                0






                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 31 '18 at 3:38









                Mike Pierce

                208111




                208111






























                    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%2f1105331%2funison-how-to-make-it-sync-automatically-bidirectional%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

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    張江高科駅