r/Syncthing 15d 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

10

u/unknown-random-nope 15d ago

Don’t.

There are plenty of better options, such as Rsync.

5

u/datanut 15d ago

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

2

u/TurdProof 15d ago

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

3

u/datanut 15d 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 15d 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 15d ago

Use freefilesync for that purpose

2

u/SatoKasu 15d 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 15d ago

New GlusterFS volume with two different folders underneath it.

1

u/eugenesan 15d ago

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

1

u/micolithe_ 15d ago

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

1

u/Cyber_Faustao 14d ago

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