Open Source Continuous File Synchronization
Go to file
Eric P 6e768a8387 lib/versioner: Fix cleaning behaviour (fixes #7988) (#8537)
The cleaning logic in util.go was used by Simple and Trashcan but only
really suited Trashcan since it works based on mtimes which Simple does
not use. The cleaning logic in util.go was moved to trashcan.go.
Staggered and Simple seemed to be able to benefit from the same base so
util.go now has the base for those two with an added parameter which
takes a function so it can still handle versioner-specific logic to
decide which files to clean up. Simple now also correctly cleans files
based on their time-stamp in the title together with a specific maximum
amount to keep. The Archive function in Simple.go was changed to get rid
of duplicated code.

Additionally the trashcan testcase which was used by Trashcan as well as
Simple was moved from versioner_test.go to trashcan_test.go to keep it
clean, there was no need to keep it in a separate test file
2022-09-13 19:21:42 +02:00
.github build: bump actions/setup-go from 2.2.0 to 3.2.1 (#8492) 2022-08-09 12:37:20 +02:00
assets assets, gui: Losslessly compress all JPG, PNG, and PDF images (#6265) 2020-01-16 13:52:43 +01:00
cmd all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
etc etc/linux-systemd: Mention AmbientCapabilities for syncOwnership. (#8536) 2022-09-13 10:00:47 +02:00
gui gui: Fix text wrapping on tablet-sized screens (fixes #8529) (#8533) 2022-09-13 19:18:57 +02:00
lib lib/versioner: Fix cleaning behaviour (fixes #7988) (#8537) 2022-09-13 19:21:42 +02:00
man gui, man, authors: Update docs, translations, and contributors 2022-09-12 04:32:45 +00:00
meta all: Unused parameter should be replaced by underscore (#8464) 2022-07-28 17:17:29 +02:00
next-gen-gui gui: Semicolons (#7597) 2021-05-03 12:14:54 +02:00
proto all: Make scanning ownership opt-in (#8497) 2022-08-12 07:47:20 +02:00
script all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
test all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
.codecov.yml build: Add test coverage info (#7502) 2021-04-05 10:25:39 +02:00
.deepsource.toml build: Fix deepsource test & exclude patterns (#7969) 2021-09-26 12:08:59 +02:00
.gitattributes lib/protocol: Revert protobuf encoder changes in v0.14.17 (fixes #3855) 2017-01-01 17:19:00 +00:00
.gitignore Ignore GoLand cruft 2021-05-09 23:56:18 +01:00
.golangci.yml golangci: Skip godox 2019-12-18 11:33:36 +01:00
AUTHORS gui, man, authors: Update docs, translations, and contributors 2022-09-12 04:32:45 +00:00
build.go all: Add build constants for runtime.GOOS comparisons (#8442) 2022-07-28 19:36:39 +02:00
build.ps1 build: Clean up build.sh, add build.ps1 (#6689) 2020-05-28 12:42:15 +02:00
build.sh build: Clean up build.sh, add build.ps1 (#6689) 2020-05-28 12:42:15 +02:00
CONDUCT.md conduct: Upgrade to Contributor Covenant 2018-06-20 23:53:06 +02:00
CONTRIBUTING.md contributing: Fix GitHub format (#7713) 2021-05-31 10:27:35 +02:00
Dockerfile docker: Expose 22000/udp (#7421) 2021-03-02 20:42:25 +01:00
Dockerfile.builder build: Simplify gem command in Debian Docker image 2021-08-17 09:38:42 +02:00
Dockerfile.buildx docker: Expose 22000/udp (#7421) 2021-03-02 20:42:25 +01:00
Dockerfile.stdiscosrv docker: Accept Go version as --build-arg 2020-05-04 12:45:36 +02:00
Dockerfile.strelaysrv docker: Accept Go version as --build-arg 2020-05-04 12:45:36 +02:00
go.mod build(deps): Bump github.com/pierrec/lz4 (#8528) 2022-09-11 10:13:27 +02:00
go.sum build(deps): Bump github.com/pierrec/lz4 (#8528) 2022-09-11 10:13:27 +02:00
GOALS.md all: Fix various user-facing and non-user-facing typos (#8509) 2022-08-23 15:44:11 +02:00
LICENSE all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
README-Docker.md docs: Clarify docker network mode limitations (#8472) 2022-07-31 20:46:57 +02:00
README.md build: Add concise build instructions to readme (#8327) 2022-05-06 07:56:26 +02:00
tools.go build: Update quic-go for Go 1.19 (#8483) 2022-08-03 15:43:26 +02:00

Syncthing


Latest Linux & Cross Build Latest Windows Build Latest Mac Build MPLv2 License CII Best Practices Go Report Card

Goals

Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers. We strive to fulfill the goals below. The goals are listed in order of importance, the most important one being the first. This is the summary version of the goal list - for more commentary, see the full Goals document.

Syncthing should be:

  1. Safe From Data Loss

    Protecting the user's data is paramount. We take every reasonable precaution to avoid corrupting the user's files.

  2. Secure Against Attackers

    Again, protecting the user's data is paramount. Regardless of our other goals we must never allow the user's data to be susceptible to eavesdropping or modification by unauthorized parties.

  3. Easy to Use

    Syncthing should be approachable, understandable and inclusive.

  4. Automatic

    User interaction should be required only when absolutely necessary.

  5. Universally Available

    Syncthing should run on every common computer. We are mindful that the latest technology is not always available to any given individual.

  6. For Individuals

    Syncthing is primarily about empowering the individual user with safe, secure and easy to use file synchronization.

  7. Everything Else

    There are many things we care about that don't make it on to the list. It is fine to optimize for these values, as long as they are not in conflict with the stated goals above.

Getting Started

Take a look at the getting started guide.

There are a few examples for keeping Syncthing running in the background on your system in the etc directory. There are also several GUI implementations for Windows, Mac and Linux.

Docker

To run Syncthing in Docker, see the Docker README.

Vote on features/bugs

We'd like to encourage you to vote on issues that matter to you. This helps the team understand what are the biggest pain points for our users, and could potentially influence what is being worked on next.

Getting in Touch

The first and best point of contact is the Forum. If you've found something that is clearly a bug, feel free to report it in the GitHub issue tracker.

Building

Building Syncthing from source is easy. After extracting the source bundle from a release or checking out git, you just need to run go run build.go and the binaries are created in ./bin. There's a guide with more details on the build process.

Signed Releases

As of v0.10.15 and onwards release binaries are GPG signed with the key D26E6ED000654A3E, available from https://syncthing.net/security.html and most key servers.

There is also a built in automatic upgrade mechanism (disabled in some distribution channels) which uses a compiled in ECDSA signature. macOS binaries are also properly code signed.

Documentation

Please see the Syncthing documentation site [source].

All code is licensed under the MPLv2 License.