How to synchronize 2 computers on Local Network

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Larry29936

How to synchronize 2 computers on Local Network

Post by Larry29936 »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
jwrober

Re: How to synchronize 2 computers on Local Network

Post by jwrober »

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

Re: How to synchronize 2 computers on Local Network

Post by nakednorman »

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

Re: How to synchronize 2 computers on Local Network

Post by Larry29936 »

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.
Minterator

Re: How to synchronize 2 computers on Local Network

Post by Minterator »

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.
rickNS
Level 9
Level 9
Posts: 2920
Joined: Tue Jan 25, 2011 11:59 pm

Re: How to synchronize 2 computers on Local Network

Post by rickNS »

"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 20.0, and 21.0 MATE on Thinkpads, 3 X T420, T450, T470, and X200
SeancBKK

Re: How to synchronize 2 computers on Local Network

Post by SeancBKK »

This is something I'd like to do also. I work at home on my desktop and I have a Macbook Air for taking to meetings. Both machines are running Mint 19.1 Cinnamon.

I have Xampp setup on the Desktop with virtual hosts for all the websites I'm developing or managing for clients, and I use ngrok to create a tunnel for clients to view the sites on localhost.

I'd like to sync that to my laptop so when I go out I can make updates during client meetings and also more importantly I can open a tunnel using ngrok while I'm out.
WharfRat

Re: How to synchronize 2 computers on Local Network

Post by WharfRat »

Aside from the connection problem 'rsync -avz Downloads/' is not a valid path. Perhaps it should be ~/Downloads/ :?:
Locked

Return to “MATE”