Syncthing
Open source continuous file synchronization
Alternative to: dropbox, google drive, onedrive, resilio sync
v2.0.0-rc.20
2025-06-06Major changes in 2.0
-
Database backend switched from LevelDB to SQLite. There is a migration on first launch which can be lengthy for larger setups. The new database is easier to understand and maintain and, hopefully, less buggy.
-
Deleted items are no longer kept forever in the database, instead they are forgotten after six months. If your use case require deletes to take effect after more than a six month delay, set the
--db-delete-retention-intervalcommand line option or corresponding environment variable to zero, or a longer time interval of your choosing. -
Modernised command line options parsing. Old single-dash long options are no longer supported, e.g.
-homemust be given as--home. Some options have been renamed, others have become subcommands. All serve options are now also accepted as environment variables. Seesyncthing --helpandsyncthing serve --helpfor details. -
Rolling hash detection of shifted data is no longer supported as this effectively never helped. Instead, scanning and syncing is faster and more efficient without it.
-
A “default folder” is no longer created on first startup.
-
Multiple connections are now used by default between v2 devices. The new default value is to use three connections: one for index metadata and two for data exchange.
This release is also available as:
-
APT repository: https://apt.syncthing.net/
-
Docker image:
docker.io/syncthing/syncthing:2.0.0-rc.20orghcr.io/syncthing/syncthing:2.0.0-rc.20({docker,ghcr}.io/syncthing/syncthing:2to follow just the major version)
What’s Changed
Fixes
- fix(db): handle large numbers of blocks in update by @calmh in https://github.com/syncthing/syncthing/pull/10025
- fix(syncthing): make directory flags global for all commands by @calmh in https://github.com/syncthing/syncthing/pull/10028
- fix(sqlite): apply options by @pixelspark in https://github.com/syncthing/syncthing/pull/10049
- fix(db): version vector serialisation :( by @calmh in https://github.com/syncthing/syncthing/pull/10050
- fix(model): loop-break regression while block copying in puller by @imsodin in https://github.com/syncthing/syncthing/pull/10069
- fix(model): close fd immediately in copier by @imsodin in https://github.com/syncthing/syncthing/pull/10079
- fix(model): use same folder first in copier by @imsodin in https://github.com/syncthing/syncthing/pull/10093
- fix(model): correct bufferpool handling; simplify by @calmh in https://github.com/syncthing/syncthing/pull/10113
- fix(protocol): avoid deadlock with concurrent connection start and close by @calmh in https://github.com/syncthing/syncthing/pull/10140
- fix(syncthing): avoid writing panic log to nil fd by @ardevd in https://github.com/syncthing/syncthing/pull/10154
Features
- feat: add
syncthing debug database-statisticscommand by @calmh in https://github.com/syncthing/syncthing/pull/10117 - feat(config): enable multiple connections by default by @calmh in https://github.com/syncthing/syncthing/pull/10151
- feat(config): expose folder and device info as metrics (fixes #9519) by @calmh in https://github.com/syncthing/syncthing/pull/10148
Other
- chore: remove abandoned next-gen-gui experiment by @calmh in https://github.com/syncthing/syncthing/pull/10004
- chore: remove weak hashing which does not pull its weight by @calmh in https://github.com/syncthing/syncthing/pull/10005
- chore: switch database engine to sqlite (fixes #9954) by @calmh in https://github.com/syncthing/syncthing/pull/9965
- chore: harmonise command line flags by @calmh in https://github.com/syncthing/syncthing/pull/10007
- chore(db): increase journal limit to 64MiB by @bt90 in https://github.com/syncthing/syncthing/pull/10022
- chore: forget deleted files older than six months (fixes #6284) by @calmh in https://github.com/syncthing/syncthing/pull/10023
- chore(db): use shorter read transactions and periodic checkpoint for smaller WAL by @calmh in https://github.com/syncthing/syncthing/pull/10027
- chore: configurable delete retention interval by @calmh in https://github.com/syncthing/syncthing/pull/10030
- chore(db): fix debug logging by @bt90 in https://github.com/syncthing/syncthing/pull/10033
- chore(db): buffer pulled files for smaller WAL by @calmh in https://github.com/syncthing/syncthing/pull/10036
- chore(db): use one SQLite database per folder by @calmh in https://github.com/syncthing/syncthing/pull/10042
- chore(model): delay starting a pull while there are incoming index updates by @calmh in https://github.com/syncthing/syncthing/pull/10041
- chore(syncthing): remove “default” folder concept by @calmh in https://github.com/syncthing/syncthing/pull/10068
- chore(syncthing): ensure migrated database is closed before exiting by @xjtdy888 in https://github.com/syncthing/syncthing/pull/10076
- chore(db, model): simplify per hash DB lookup in copier by @imsodin in https://github.com/syncthing/syncthing/pull/10080
- chore(model): refactor copier for more flatness by @imsodin in https://github.com/syncthing/syncthing/pull/10094
- build: upgrade setup-zig action by @calmh in https://github.com/syncthing/syncthing/pull/10134
- build: properly propagate build tags to Debian build by @calmh in https://github.com/syncthing/syncthing/pull/10144
- chore(protocol): don’t start connection routines a second time by @imsodin in https://github.com/syncthing/syncthing/pull/10146
- chore(protocol): only allow enc. password changes on cluster config by @imsodin in https://github.com/syncthing/syncthing/pull/10145
New Contributors
- @ardevd made their first contribution in https://github.com/syncthing/syncthing/pull/10154
Full Changelog: https://github.com/syncthing/syncthing/compare/v1.29.7…v2.0.0-rc.20