7 ms·
This is easy with Syncthing. Just create a bindirectional sync and move away the data with cron.
by opengears 2y ago
This is easy with Syncthing. Just create a bindirectional sync and move away the data with cron.
- xyse53 2y agoThat doesn't provide a guarantee that a file is on multiple replicas before deletion from the phone.
- opengears 2y agoYou 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/ https://torsion.org/borgmatic/
- ErikBjare 2y agoI 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).
- em-bee 2y agoi 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?