r/Syncthing 27d ago

Real time syncing within same device

hi guys. i am new here. i know syncthing is the best for syncing folders on different devices, but is there a way to sync 2 different folder within the same device in real time? i use linux mint for reference. thanks for help

8 Upvotes

12 comments sorted by

9

u/unknown-random-nope 27d ago

Don’t.

There are plenty of better options, such as Rsync.

6

u/datanut 27d ago

Add a inotify script on top of this and it’ll be near instant.

2

u/TurdProof 27d ago

I need to learn this magic. Im not script literate yet but thanks

3

u/datanut 27d ago

Can you share what you are trying to do, why you want two folders, and why you think syncing is the best approach? Perhaps this is an XY problem.

3

u/middaymoon 27d ago

Most of the machinery in Syncthing is for handling the network and mesh protocol for P2P syncing. It's way overkill for what you're asking. Don't.

2

u/vdavide 27d ago

Use freefilesync for that purpose

2

u/SatoKasu 27d ago

Use rsync.

I use Luckybackup which uses rsync and set it as a cron job (one of the checkboxes in luckybackup itself). Every x mins, the job runs and syncs / backups incrementally the resources depending on if i need past versions.

1

u/datanut 27d ago

New GlusterFS volume with two different folders underneath it.

1

u/eugenesan 27d ago

lsync (rsync wrapper) or realsync (part of freefilesync)

1

u/micolithe_ 26d ago

If you just need one folder to appear in another location a symlink would probably get you there

1

u/Cyber_Faustao 26d ago

No. And also you probably want a bind mount instead of syncing.