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.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to synchronize 2 computers on Local Network
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to synchronize 2 computers on Local Network
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/
https://www.tecmint.com/rsync-local-rem ... -commands/
Re: How to synchronize 2 computers on Local Network
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
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
Re: How to synchronize 2 computers on Local Network
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.
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.
Re: How to synchronize 2 computers on Local Network
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.
Re: How to synchronize 2 computers on Local Network
"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.
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
Re: How to synchronize 2 computers on Local Network
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.
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.
Re: How to synchronize 2 computers on Local Network
Aside from the connection problem 'rsync -avz Downloads/' is not a valid path. Perhaps it should be ~/Downloads/