Giter Club home page Giter Club logo

synology-syncthing's Introduction

synology-syncthing

Scripts and tips for improving the operation of Syncthing on a Synology Diskstation

Syncthing is a cross platform tool for syncing files to other machines in real time. More information is available from the official website syncthing.net.

Syncthing can be installed from https://synocommunity.com/, but it poses two big problems.

  • On ds1515 the binary would not run
  • The package did not include the syncthing-inotify binary, which watches changes in files. Without it, every shared directory is fully checked on a schedule. This is not only a waste of time, but also process intensive.

As of version 0.14.47, Syncthing now includes a file watcher built-in. It will also be enabled by default and you don't want to enable syncthing-inotify in that case. I am still in the process of testing it myself. So far it seems to work just as well as syncthing-inotify. I would probably recommend using it, since it requires less configuration than inotify. With my large data set I haven't received any errors besides the common insuficient permissions. I doubt that was related to the watcher, though. I will retain the following steps in case you can't upgrade for some reason or you choose to go this route instead. Syncthing documentation on file scanning

Update! My current version of Syncthing is version 1.0.0. I have been running the native Syncthing file watcher since version 0.14.47 with no ill effects. Still my favorite sync util!

To fully appreciate syncthing. Follow these steps. (Mind you, I have tested this on ds1515, and ds412+. If you update the synocommunity package these modifications will be removed and you'll need to repeat these steps. Your data is your data and if it's important to you. You should have backups and test new processes on test data. If you don't take the right precautions and wipe out your data that's your problem.)

  • Download the appropriate syncthing binary from syncthing.net. Your Synology architecture can be discovered from this page What kind of CPU does my NAS have
  • Copy the syncthing binary over the one in /var/packages/syncthing/target/bin
  • Download the appropriate syncthing-inotify binary from github. Again, choose the one for your Synology architecture.
  • Copy the syncthing-inotify binary to /var/packages/syncthing/target/bin
  • Finally, copy the start-stop-status script in this repo to /var/packages/syncthing/scripts/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.