sync two folders on two separate ext HDD
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
command-line bash sync
 |Â
show 2 more comments
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
command-line bash sync
2
The tool you are looking for might bersync
.
â 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 yourrsync
command incrontab
.
â John1024
May 26 at 20:48
1
Yes, usersync
twice.
â John1024
May 26 at 21:41
 |Â
show 2 more comments
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
command-line bash sync
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
command-line bash sync
edited May 27 at 7:38
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
dessert
19.5k55594
19.5k55594
asked May 26 at 20:14
simple mind
10610
10610
2
The tool you are looking for might bersync
.
â 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 yourrsync
command incrontab
.
â John1024
May 26 at 20:48
1
Yes, usersync
twice.
â John1024
May 26 at 21:41
 |Â
show 2 more comments
2
The tool you are looking for might bersync
.
â 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 yourrsync
command incrontab
.
â John1024
May 26 at 20:48
1
Yes, usersync
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
 |Â
show 2 more comments
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
+1 â I never heard ofunison
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
add a comment |Â
up vote
1
down vote
I use 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
:
When you configured it to your needs, press Alt+R to display the correspondent command line.
add a comment |Â
up vote
0
down vote
I can recommend FreeFileSync. It works fast and great.
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.
add a comment |Â
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
+1 â I never heard ofunison
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
add a comment |Â
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
+1 â I never heard ofunison
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
add a comment |Â
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
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
edited May 28 at 5:06
answered May 27 at 8:00
![](https://i.stack.imgur.com/33gTl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/33gTl.jpg?s=32&g=1)
Sebastian Stark
4,603838
4,603838
+1 â I never heard ofunison
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
add a comment |Â
+1 â I never heard ofunison
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
add a comment |Â
up vote
1
down vote
I use 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
:
When you configured it to your needs, press Alt+R to display the correspondent command line.
add a comment |Â
up vote
1
down vote
I use 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
:
When you configured it to your needs, press Alt+R to display the correspondent command line.
add a comment |Â
up vote
1
down vote
up vote
1
down vote
I use 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
:
When you configured it to your needs, press Alt+R to display the correspondent command line.
I use 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
:
When you configured it to your needs, press Alt+R to display the correspondent command line.
answered May 27 at 7:31
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
![](https://i.stack.imgur.com/9L8vd.png?s=32&g=1)
dessert
19.5k55594
19.5k55594
add a comment |Â
add a comment |Â
up vote
0
down vote
I can recommend FreeFileSync. It works fast and great.
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.
add a comment |Â
up vote
0
down vote
I can recommend FreeFileSync. It works fast and great.
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.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I can recommend FreeFileSync. It works fast and great.
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.
I can recommend FreeFileSync. It works fast and great.
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.
edited Jun 15 at 19:06
answered May 27 at 17:40
N0rbert
14.5k32869
14.5k32869
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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 incrontab
.â John1024
May 26 at 20:48
1
Yes, use
rsync
twice.â John1024
May 26 at 21:41