sync two folders on two separate ext HDD

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
2
down vote

favorite












I have folder-A on an ext HDD lets say HDD-A, and folder-B in ext HDD-B.



Is there a way to sync both folders automatically? either real-time or once a day at least







share|improve this question


















  • 2




    The tool you are looking for might be rsync.
    – PerlDuck
    May 26 at 20:16










  • any GUI for rsync?
    – simple mind
    May 26 at 20:20






  • 2




    Why would you need a GUI is your requirement is to sync "...either in real-time or once a day at least..."?
    – Andy Turfer
    May 26 at 20:31






  • 1




    To sync automatically (that is, without using either GUI or CLI everyday), put your rsync command in crontab.
    – John1024
    May 26 at 20:48






  • 1




    Yes, use rsync twice.
    – John1024
    May 26 at 21:41














up vote
2
down vote

favorite












I have folder-A on an ext HDD lets say HDD-A, and folder-B in ext HDD-B.



Is there a way to sync both folders automatically? either real-time or once a day at least







share|improve this question


















  • 2




    The tool you are looking for might be rsync.
    – PerlDuck
    May 26 at 20:16










  • any GUI for rsync?
    – simple mind
    May 26 at 20:20






  • 2




    Why would you need a GUI is your requirement is to sync "...either in real-time or once a day at least..."?
    – Andy Turfer
    May 26 at 20:31






  • 1




    To sync automatically (that is, without using either GUI or CLI everyday), put your rsync command in crontab.
    – John1024
    May 26 at 20:48






  • 1




    Yes, use rsync twice.
    – John1024
    May 26 at 21:41












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have folder-A on an ext HDD lets say HDD-A, and folder-B in ext HDD-B.



Is there a way to sync both folders automatically? either real-time or once a day at least







share|improve this question














I have folder-A on an ext HDD lets say HDD-A, and folder-B in ext HDD-B.



Is there a way to sync both folders automatically? either real-time or once a day at least









share|improve this question













share|improve this question




share|improve this question








edited May 27 at 7:38









dessert

19.5k55594




19.5k55594










asked May 26 at 20:14









simple mind

10610




10610







  • 2




    The tool you are looking for might be rsync.
    – PerlDuck
    May 26 at 20:16










  • any GUI for rsync?
    – simple mind
    May 26 at 20:20






  • 2




    Why would you need a GUI is your requirement is to sync "...either in real-time or once a day at least..."?
    – Andy Turfer
    May 26 at 20:31






  • 1




    To sync automatically (that is, without using either GUI or CLI everyday), put your rsync command in crontab.
    – John1024
    May 26 at 20:48






  • 1




    Yes, use rsync twice.
    – John1024
    May 26 at 21:41












  • 2




    The tool you are looking for might be rsync.
    – PerlDuck
    May 26 at 20:16










  • any GUI for rsync?
    – simple mind
    May 26 at 20:20






  • 2




    Why would you need a GUI is your requirement is to sync "...either in real-time or once a day at least..."?
    – Andy Turfer
    May 26 at 20:31






  • 1




    To sync automatically (that is, without using either GUI or CLI everyday), put your rsync command in crontab.
    – John1024
    May 26 at 20:48






  • 1




    Yes, use rsync twice.
    – John1024
    May 26 at 21:41







2




2




The tool you are looking for might be rsync.
– PerlDuck
May 26 at 20:16




The tool you are looking for might be rsync.
– PerlDuck
May 26 at 20:16












any GUI for rsync?
– simple mind
May 26 at 20:20




any GUI for rsync?
– simple mind
May 26 at 20:20




2




2




Why would you need a GUI is your requirement is to sync "...either in real-time or once a day at least..."?
– Andy Turfer
May 26 at 20:31




Why would you need a GUI is your requirement is to sync "...either in real-time or once a day at least..."?
– Andy Turfer
May 26 at 20:31




1




1




To sync automatically (that is, without using either GUI or CLI everyday), put your rsync command in crontab.
– John1024
May 26 at 20:48




To sync automatically (that is, without using either GUI or CLI everyday), put your rsync command in crontab.
– John1024
May 26 at 20:48




1




1




Yes, use rsync twice.
– John1024
May 26 at 21:41




Yes, use rsync twice.
– John1024
May 26 at 21:41










3 Answers
3






active

oldest

votes

















up vote
2
down vote













Unison



You can use unison to keep two paths synchronised bi-directionally. The good thing about using unison, as compared to simpler programs like rsync, is that it has built-in conflict resolution handling. For instance, if in pathA/foo.txt and pathB/foo.txt have both changed, the program needs to know which file you want.



Basic usage for unison is:



$ unison -auto path/to/A path/to/B


then it will try to keep the structures below path/to/A and path/to/B in sync. You can also add the -batch flag to make it work non-interactively, although conflicts will not get resolved this way.



Unison will save a state for each sync pair, so it will remember your preferences for conflict resolution. There are quite some options available for different use cases.



It is available in Ubuntu as package unison. A GUI version is also available as unison-gtk.



Warning As with all automatic synchronisation solutions, please first make yourself familiar with the program in a test environment. Also read the documentation thoroughly. It is easy to mess up and end up overwriting the wrong files.



Extended manual:



  • https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

Related:



  • syncronizing with unison on ubuntu

  • Unison - Automatically Sync Computers





share|improve this answer






















  • +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
    – dessert
    May 27 at 8:25










  • It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
    – Sebastian Stark
    May 27 at 8:36










  • +1. I use Unison and can recommend it :-)
    – sudodus
    May 28 at 5:41

















up vote
1
down vote













I use rsync Install rsync for tasks like that:



rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b"


You can add a cron job to schedule the task, I recommend redirecting rsync’s output to a log file. E.g. to run it every 10 minutes and save the output in ~/logs/rsync.log:



*/10 * * * * rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b" >~/logs/rsync.log


If you prefer a GUI you can use grsync Install grsync:



grsync



When you configured it to your needs, press Alt+R to display the correspondent command line.






share|improve this answer



























    up vote
    0
    down vote













    I can recommend FreeFileSync. It works fast and great.



    FreeFileSync on Ubuntu



    I'm using it for synchronization between HDDs, USB-flashes, SSHFS, Samba share and/or local folder.



    Also it has real-time sync mode (named as RealTimeSync).



    You can install as described in this answer:



    • by outdated package from GetDeb.net repository;

    • by downloading archive from official site to your home folder and extracting it here.





    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',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f1040681%2fsync-two-folders-on-two-separate-ext-hdd%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      2
      down vote













      Unison



      You can use unison to keep two paths synchronised bi-directionally. The good thing about using unison, as compared to simpler programs like rsync, is that it has built-in conflict resolution handling. For instance, if in pathA/foo.txt and pathB/foo.txt have both changed, the program needs to know which file you want.



      Basic usage for unison is:



      $ unison -auto path/to/A path/to/B


      then it will try to keep the structures below path/to/A and path/to/B in sync. You can also add the -batch flag to make it work non-interactively, although conflicts will not get resolved this way.



      Unison will save a state for each sync pair, so it will remember your preferences for conflict resolution. There are quite some options available for different use cases.



      It is available in Ubuntu as package unison. A GUI version is also available as unison-gtk.



      Warning As with all automatic synchronisation solutions, please first make yourself familiar with the program in a test environment. Also read the documentation thoroughly. It is easy to mess up and end up overwriting the wrong files.



      Extended manual:



      • https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

      Related:



      • syncronizing with unison on ubuntu

      • Unison - Automatically Sync Computers





      share|improve this answer






















      • +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
        – dessert
        May 27 at 8:25










      • It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
        – Sebastian Stark
        May 27 at 8:36










      • +1. I use Unison and can recommend it :-)
        – sudodus
        May 28 at 5:41














      up vote
      2
      down vote













      Unison



      You can use unison to keep two paths synchronised bi-directionally. The good thing about using unison, as compared to simpler programs like rsync, is that it has built-in conflict resolution handling. For instance, if in pathA/foo.txt and pathB/foo.txt have both changed, the program needs to know which file you want.



      Basic usage for unison is:



      $ unison -auto path/to/A path/to/B


      then it will try to keep the structures below path/to/A and path/to/B in sync. You can also add the -batch flag to make it work non-interactively, although conflicts will not get resolved this way.



      Unison will save a state for each sync pair, so it will remember your preferences for conflict resolution. There are quite some options available for different use cases.



      It is available in Ubuntu as package unison. A GUI version is also available as unison-gtk.



      Warning As with all automatic synchronisation solutions, please first make yourself familiar with the program in a test environment. Also read the documentation thoroughly. It is easy to mess up and end up overwriting the wrong files.



      Extended manual:



      • https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

      Related:



      • syncronizing with unison on ubuntu

      • Unison - Automatically Sync Computers





      share|improve this answer






















      • +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
        – dessert
        May 27 at 8:25










      • It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
        – Sebastian Stark
        May 27 at 8:36










      • +1. I use Unison and can recommend it :-)
        – sudodus
        May 28 at 5:41












      up vote
      2
      down vote










      up vote
      2
      down vote









      Unison



      You can use unison to keep two paths synchronised bi-directionally. The good thing about using unison, as compared to simpler programs like rsync, is that it has built-in conflict resolution handling. For instance, if in pathA/foo.txt and pathB/foo.txt have both changed, the program needs to know which file you want.



      Basic usage for unison is:



      $ unison -auto path/to/A path/to/B


      then it will try to keep the structures below path/to/A and path/to/B in sync. You can also add the -batch flag to make it work non-interactively, although conflicts will not get resolved this way.



      Unison will save a state for each sync pair, so it will remember your preferences for conflict resolution. There are quite some options available for different use cases.



      It is available in Ubuntu as package unison. A GUI version is also available as unison-gtk.



      Warning As with all automatic synchronisation solutions, please first make yourself familiar with the program in a test environment. Also read the documentation thoroughly. It is easy to mess up and end up overwriting the wrong files.



      Extended manual:



      • https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

      Related:



      • syncronizing with unison on ubuntu

      • Unison - Automatically Sync Computers





      share|improve this answer














      Unison



      You can use unison to keep two paths synchronised bi-directionally. The good thing about using unison, as compared to simpler programs like rsync, is that it has built-in conflict resolution handling. For instance, if in pathA/foo.txt and pathB/foo.txt have both changed, the program needs to know which file you want.



      Basic usage for unison is:



      $ unison -auto path/to/A path/to/B


      then it will try to keep the structures below path/to/A and path/to/B in sync. You can also add the -batch flag to make it work non-interactively, although conflicts will not get resolved this way.



      Unison will save a state for each sync pair, so it will remember your preferences for conflict resolution. There are quite some options available for different use cases.



      It is available in Ubuntu as package unison. A GUI version is also available as unison-gtk.



      Warning As with all automatic synchronisation solutions, please first make yourself familiar with the program in a test environment. Also read the documentation thoroughly. It is easy to mess up and end up overwriting the wrong files.



      Extended manual:



      • https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html

      Related:



      • syncronizing with unison on ubuntu

      • Unison - Automatically Sync Computers






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited May 28 at 5:06

























      answered May 27 at 8:00









      Sebastian Stark

      4,603838




      4,603838











      • +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
        – dessert
        May 27 at 8:25










      • It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
        – Sebastian Stark
        May 27 at 8:36










      • +1. I use Unison and can recommend it :-)
        – sudodus
        May 28 at 5:41
















      • +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
        – dessert
        May 27 at 8:25










      • It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
        – Sebastian Stark
        May 27 at 8:36










      • +1. I use Unison and can recommend it :-)
        – sudodus
        May 28 at 5:41















      +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
      – dessert
      May 27 at 8:25




      +1 – I never heard of unison before even though it has an extensive (German) wiki.ubuntuusers.de article which covers automatisation quite well.
      – dessert
      May 27 at 8:25












      It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
      – Sebastian Stark
      May 27 at 8:36




      It is rather complex, but for real two-way sync with conflict resolution I don't know anything better.
      – Sebastian Stark
      May 27 at 8:36












      +1. I use Unison and can recommend it :-)
      – sudodus
      May 28 at 5:41




      +1. I use Unison and can recommend it :-)
      – sudodus
      May 28 at 5:41












      up vote
      1
      down vote













      I use rsync Install rsync for tasks like that:



      rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b"


      You can add a cron job to schedule the task, I recommend redirecting rsync’s output to a log file. E.g. to run it every 10 minutes and save the output in ~/logs/rsync.log:



      */10 * * * * rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b" >~/logs/rsync.log


      If you prefer a GUI you can use grsync Install grsync:



      grsync



      When you configured it to your needs, press Alt+R to display the correspondent command line.






      share|improve this answer
























        up vote
        1
        down vote













        I use rsync Install rsync for tasks like that:



        rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b"


        You can add a cron job to schedule the task, I recommend redirecting rsync’s output to a log file. E.g. to run it every 10 minutes and save the output in ~/logs/rsync.log:



        */10 * * * * rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b" >~/logs/rsync.log


        If you prefer a GUI you can use grsync Install grsync:



        grsync



        When you configured it to your needs, press Alt+R to display the correspondent command line.






        share|improve this answer






















          up vote
          1
          down vote










          up vote
          1
          down vote









          I use rsync Install rsync for tasks like that:



          rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b"


          You can add a cron job to schedule the task, I recommend redirecting rsync’s output to a log file. E.g. to run it every 10 minutes and save the output in ~/logs/rsync.log:



          */10 * * * * rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b" >~/logs/rsync.log


          If you prefer a GUI you can use grsync Install grsync:



          grsync



          When you configured it to your needs, press Alt+R to display the correspondent command line.






          share|improve this answer












          I use rsync Install rsync for tasks like that:



          rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b"


          You can add a cron job to schedule the task, I recommend redirecting rsync’s output to a log file. E.g. to run it every 10 minutes and save the output in ~/logs/rsync.log:



          */10 * * * * rsync -a "/path/to/hdd1/dir-a" "/path/to/hdd2/dir-b" >~/logs/rsync.log


          If you prefer a GUI you can use grsync Install grsync:



          grsync



          When you configured it to your needs, press Alt+R to display the correspondent command line.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 27 at 7:31









          dessert

          19.5k55594




          19.5k55594




















              up vote
              0
              down vote













              I can recommend FreeFileSync. It works fast and great.



              FreeFileSync on Ubuntu



              I'm using it for synchronization between HDDs, USB-flashes, SSHFS, Samba share and/or local folder.



              Also it has real-time sync mode (named as RealTimeSync).



              You can install as described in this answer:



              • by outdated package from GetDeb.net repository;

              • by downloading archive from official site to your home folder and extracting it here.





              share|improve this answer


























                up vote
                0
                down vote













                I can recommend FreeFileSync. It works fast and great.



                FreeFileSync on Ubuntu



                I'm using it for synchronization between HDDs, USB-flashes, SSHFS, Samba share and/or local folder.



                Also it has real-time sync mode (named as RealTimeSync).



                You can install as described in this answer:



                • by outdated package from GetDeb.net repository;

                • by downloading archive from official site to your home folder and extracting it here.





                share|improve this answer
























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I can recommend FreeFileSync. It works fast and great.



                  FreeFileSync on Ubuntu



                  I'm using it for synchronization between HDDs, USB-flashes, SSHFS, Samba share and/or local folder.



                  Also it has real-time sync mode (named as RealTimeSync).



                  You can install as described in this answer:



                  • by outdated package from GetDeb.net repository;

                  • by downloading archive from official site to your home folder and extracting it here.





                  share|improve this answer














                  I can recommend FreeFileSync. It works fast and great.



                  FreeFileSync on Ubuntu



                  I'm using it for synchronization between HDDs, USB-flashes, SSHFS, Samba share and/or local folder.



                  Also it has real-time sync mode (named as RealTimeSync).



                  You can install as described in this answer:



                  • by outdated package from GetDeb.net repository;

                  • by downloading archive from official site to your home folder and extracting it here.






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jun 15 at 19:06

























                  answered May 27 at 17:40









                  N0rbert

                  14.5k32869




                  14.5k32869






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040681%2fsync-two-folders-on-two-separate-ext-hdd%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491