Replace rsync with Syncthing

I am currently using rsync to backup the files of my main hard drive to an USB Drive connected on the same PC.

I would like to replace this rsync solution by Syncthing.

Is it possible to create on the same computer (without creating a Virtual Machine) 2 Syncthing instances so the same PC would be seen as 2 different Syncthing nodes?

syncthing != backup You delete files on your backup, and files get deleted on your normal machine.

Syncthing uses hashing and encryption, which cannot be disabled. This means, that Syncthing will use CPU and RAM resources, even when using two instances on the same PC. So Syncthing is the wrong program for your scenario.

on Windows there is also robocopy <Source> <Destination> /MIR

As audrius already mentioned, Syncthing != backup; see the FAQ. For backups I could potentially point you to borg:

https://borgbackup.readthedocs.org/en/stable/

Note that rsync is also not backup, in that sense, so the comparison is valid. Paired with filesystem snapshots, or ignoreDelete or just versioning Syncthing is an OK tool for backup. I use it for that purpose.

But do consider the snapshots, versioning and so on.

In response to the initial question, even if it is now moot:

Two Syncthing instances can run on the same machine at the same time, but it will likely require some finagling. A few areas to think about:

  • Each instance should use a different directory for configuration (http://docs.syncthing.net/users/syncthing.html#cmdoption-home)
  • Each instance will have to listen for connections on a different port. This might be automatically handled, but I am not sure.
  • I have had trouble getting local discovery working on a single node. The broadcasts don’t work so well. Configuring each “node” to connect directly to the right port should resolve this. Global discovery might work, but I’m am not sure.
  • The GUIs, if used, will be hosted on different ports. This may make it difficult to use wrappers (e.g. SyncTrayzor)
1 Like

Are you using btrfs filesystem? Just curious how do you make fs snapshots? Thanks

ZFS

Look into rsnapshot, which automates rsync.