News for hackers. Stuff that matters.
Re:Syncthing – A decentralized continuous file synchronizati... by opengears on Monday August 19, 2024 @01:42AM (#41288122)
This is easy with Syncthing. Just create a bindirectional sync and move away the data with cron.
Re:Syncthing – A decentralized continuous file synchronizati... by xyse53 on Monday August 19, 2024 @02:04AM (#41288230)
That doesn't provide a guarantee that a file is on multiple replicas before deletion from the phone.
Re:Syncthing – A decentralized continuous file synchronizati... by opengears on Monday August 19, 2024 @06:08AM (#41289583)
You could use Syncthing just to empty the incoming files from your phone (ingest) and then move the photos via cron to a second folder (also Syncthing) which is just shared with the replicas.

Another approach would be to push the files from Syncthing to borg (borgmatic can do replicas) https://torsion.org/borgmatic/

Re:Syncthing – A decentralized continuous file synchronizati... by ErikBjare on Monday August 19, 2024 @11:33AM (#41291915)
I import files from Syncthing folders into a git-annex on my NAS, where multiple copies are eventually guaranteed via sync to off-site mirrors (remotes).
Re:Syncthing – A decentralized continuous file synchronizati... by em-bee on Tuesday August 20, 2024 @06:13AM (#41298564)
i don't believe that will work reliably. cron risks moving a file that is not complete or a race condition where the complete file is moved away before synching verified that it is complete causing it to transfer it again. this can be avoided by only moving files that are a few minutes old but issues like this just make the process more brittle.

i want to use a tool that is reliable, not hack together a custom solution. if i did that, why even bother with syncthing?