How to synchronize 2 computers on Local Network

Forum rules
Before you post please read how to get help
Post Reply
Larry29936
Level 1
Level 1
Posts: 37
Joined: Wed Feb 10, 2016 9:50 pm

How to synchronize 2 computers on Local Network

Post by Larry29936 » Fri Jan 12, 2018 12:20 pm

I have 2 computers, both running Mint Mate 18.3 on my local network and need to keep them synchronized. How do I accomplish this? I've installed Samba is installed on both computers but don't know how to proceed. Both computers have fixed IP addresses on the local network.

jwrober
Level 1
Level 1
Posts: 16
Joined: Thu Dec 21, 2017 12:17 pm

Re: How to synchronize 2 computers on Local Network

Post by jwrober » Fri Jan 12, 2018 12:39 pm

What is it you want to keep synchronized between the two machines? You don't need Samba to do this. The best tool is rsync. It is a great tool.

https://www.tecmint.com/rsync-local-rem ... -commands/

nakednorman
Level 1
Level 1
Posts: 19
Joined: Mon Jan 02, 2017 9:05 am

Re: How to synchronize 2 computers on Local Network

Post by nakednorman » Fri Jan 12, 2018 1:05 pm

Depending on what it is you want to synchronise, "rsync" is a good starting place.
If you want something a bit more GUI then "Unison" is excellent (from Software Manager).
Unison is based on rsync, so it doesn't hurt to learn that first.
NN

Larry29936
Level 1
Level 1
Posts: 37
Joined: Wed Feb 10, 2016 9:50 pm

Re: How to synchronize 2 computers on Local Network

Post by Larry29936 » Fri Jan 12, 2018 2:08 pm

I can't get rsync to work. Trying to copy contents from /Downloads folder on my laptop to my Desktop machine (192.168.1.2). Here is the command I'm using on the laptop:

rsync -avz Downloads/ root@192.168.1.2:/home/larry/Downloads

Both machines have rsync installed. Here is what I get when I run it:

ssh: connect to host 192.168.1.2 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]

Can you provide any guidance?

Incidentally, I can connect using NFS.

User avatar
Minterator
Level 5
Level 5
Posts: 596
Joined: Thu Jan 10, 2013 8:29 am

Re: How to synchronize 2 computers on Local Network

Post by Minterator » Tue Jan 16, 2018 6:01 pm

Larry29936 wrote:I can't get rsync to work. Trying to copy contents from /Downloads folder on my laptop to my Desktop machine (192.168.1.2). Here is the command I'm using on the laptop:

rsync -avz Downloads/ root@192.168.1.2:/home/larry/Downloads

Both machines have rsync installed. Here is what I get when I run it:

ssh: connect to host 192.168.1.2 port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]

Can you provide any guidance?

Incidentally, I can connect using NFS.

The path on your network will be something like:

/run/user/1000/gvfs/smb-share\:server\=Z170\,share\=file-system/home/friend/Documents/

and rsync works fine on networks, even preserves timestamps.
Mint 17.3 MATE, kernel 4.11.12

rickNS
Level 3
Level 3
Posts: 157
Joined: Tue Jan 25, 2011 11:59 pm

Re: How to synchronize 2 computers on Local Network

Post by rickNS » Wed Jan 17, 2018 5:34 pm

"connection refused"
Just a guess here Larry, do you have a firewall rule to allow the other computer in ?
When I use synergy I have to make such an allow rule on the server computer.
Mint 18 mate on 2 identical Thinkpad T420's

Post Reply

Return to “MATE”