1/3/2024 0 Comments Syncthing one way syncThe software has a cool feature of discovery, which makes it easy to add devices on a given node. Basically, you need to define the nodes and connect them to each other, if the devices are not added on both sites then the folders will not sync. Instructions on how to configure the folders and nodes are available at the Getting Started Guide over on the project website so I am not going to repeat them here. There is also a Desktop application, but I prefer the web-ui. Once the software starts, it will start the web interface automatically. On my computer it is installed in /usr/bin/syncthing. Once the software is installed execute the syncthing binary. Once you have added it, run the following command to install syncthing.Run the following commands to add the “stable” channel to your APT sources:Įcho "deb syncthing stable" | sudo tee /etc/apt//syncthing.list.In Debian, installation just required the following steps Syncthing’s installation is pretty simple for all major operating systems, except for iPhones which are not supported. Thankfully nothing did, but it is always good to have a backup. Before starting the setup I backed up all my data so that in case something went wrong I still had a backup. So I spent a little bit of time researching syncthing and then decided to take the plunge and setup my laptop and desktop to sync with each other. In other words a perfect fit for what I wanted and needed to do. In the article John talked about Syncthing, which allowed him to create a local serverless, peer-to-peer, open source alternative to Dropbox that allowed his machines sync directly with each other without a server. Then a few weeks ago, I came across this great article on how to create A Simple, Delay-Tolerant, Offline-Capable Mesh Network with Syncthing (+ optional NNCP). Since that was a show-stopper for me, I never got around to setting up my systems to automatically sync with each other. Unfortunately, all of them required an external connection with a copy of the data being stored in the cloud. I have in the past looked into various technologies that allow multiple devices to sync data with each other. This was very crumbersome and I really disliked having to do it. My phone on the other hand was backed up manually to my computer using sftp. This worked, but was not userfriendly and required me to manually kick off a backup which I did infrequently. The only way to fix was to delete all the files on my computer and then do a fresh sync. For some reason the system would refuse to overwrite changed files randomly with permission denied errors even when the permission was set to 777. For Jani’s laptop I mounted my drive on her computer over ssh using these steps and then running robocopy to copy the files over. The issue is that I still had to manually sync the data between the devices.įor my laptop, I used Unison to manually check for changes and then sync them over which works great but I had to ensure that the sync happened in the correct direction. Once it is there on the desktop the various backup processes make sure that it is backed up and secure. I still had to manually sync the data from my laptop, Jani’s laptop and my phone to my desktop manually. I am quite happy with the setup I explained in my previous post except for one minor point. Sent 61 bytes received 12 bytes 146.I have talked about how my Backup strategy has evolved over the years. Wed Feb 2 04:24:13 2022 Normal: Calling rsync with filter-list of new/modified files/dirs Wed Feb 2 04:23:06 2022 Normal: Startup of "/tmp/test/" finished: 0 Wed Feb 2 04:22:52 2022 Normal: recursive startup rsync: /tmp/test/ -> Permanently added ':6765,:6765' (ECDSA) to the list of known hosts. settings Īnd after 4 hours of wandering: Wed Feb 2 04:22:52 2022 Normal: - Startup, daemonizing. Open /etc/nf and comment out the default configuration using - at the beginning of the line and add below configuration to the file. Generate ssh-key in both the servers and add to authorized_keys file. # yum -y install lua lua-devel pkgconfig gcc asciidoc lsyncd Install below packages on both the servers. There is a good tool called lsyncd to sync files between multiple servers on real time basis. Realtime File synchronisation between multiple servers in multi master mode
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |