Jump to content


Syncing between two computers - Syncthing?


  • Please log in to reply
4 replies to this topic

#1 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,483 posts

Posted 28 November 2017 - 09:20 AM

I have now got 2 computers running having brought my old one out of retirement. The old one (bedroom) is mainly for everyday use, and the newer one (loungeroom) is mainly for music production although it's bound to be used for games and watching video as it has my new Sony 43" 4K TV as its monitor.
I need to sync files both ways between them as either may be used to add files, mainly to my music collection which currently is about 650GB, but also for backups of other data such as recording production sessions. Both are on the same network via wifi. I considered rsync which I have always used for backups to external drives but it seems more suited for one way transfers and needs ssh or similar over network.
Then a search revealed Syncthing which seems like it could be suitable. Setup looks easy with only firewall settings to consider. The FAQ mentions things that are not synced which hopefully are not an issue:

Quote

The following are not synchronized;File or Directory Owners and Groups (not preserved)
Directory Modification Times (not preserved)

So my questions are - has anyone experience using Syncthing? Does it look like the best tool for the job? It's open source and available in repos for Debian and Arch.

https://syncthing.net/
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted ImageKXStudio
For the things we have to learn before we can do them, we learn by doing them.

#2 OFFLINE   Hedon James

Hedon James

    Topic Cop

  • Members
  • PipPipPipPipPipPipPip
  • 791 posts

Posted 28 November 2017 - 10:42 AM

I haven't used Syncthing, but everything I've read suggests that it would be a good tool for the job.  FWIW, you are correct, IMO, that rsync is best suited for 1-way backups.  It sounds like you might also be interested in Unison, which is a 2-way synchronization designed to "mirror" multiple locations.  Is this what you're looking to accomplish:

https://www.howtofor...-debian-jessie/

Assuming Unison also does the job, someone else will have to chime in on the pros vs. cons of each.  I believe Syncthing is multi-platform, including Android, so that could be a plus, as I'm not sure Unison is available for cell phone platforms.

#3 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 23,419 posts

Posted 28 November 2017 - 11:21 AM

I have a daily cron job that runs syncs data between drives using rsync

https://wiki.archlin...utomated_backup

Basically it copies over anything that is on the host but not on the backup so that way both drives have the same exact data. This should work just fine between computers as well. There is no reason to run an additional application as you can set this as a cronjob and it will run automatically. Example of mine:  http://forums.scotsn...12
Posted ImagePosted Image Posted Image
CNI Radio/G+ Profile/Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#4 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,483 posts

Posted 28 November 2017 - 06:02 PM

Thanks for your advice but it still looks like Syncthing will be the best for my use case. I was mainly just wondering if anyone had experience with it.
I will try it and let you know how it goes.

For phone data swapping I use KDE Connect. Perfect for what I need there.
registered Linux user number 324659  || The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted ImageKXStudio
For the things we have to learn before we can do them, we learn by doing them.

#5 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 23,419 posts

Posted 28 November 2017 - 06:05 PM

Cool, let us know what you ended up using.
Posted ImagePosted Image Posted Image
CNI Radio/G+ Profile/Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users