Skip to content

stbridge: Exclude database during imports and exports#85

Merged
chenxiaolong merged 1 commit intomasterfrom
database
Apr 7, 2026
Merged

stbridge: Exclude database during imports and exports#85
chenxiaolong merged 1 commit intomasterfrom
database

Conversation

@chenxiaolong
Copy link
Copy Markdown
Owner

Restoring the database is only safe if the actual shared folder data was restored first. Otherwise, Syncthing may treat missing files as deletions, resulting in data loss on all connected devices. If Syncthing starts up with an empty database, it'll just pull down any missing files from connected devices instead, which is much safer.

The only downside is that the initial scan will take longer if users do actually have all of the shared folder data present.

Restoring the database is only safe if the actual shared folder data was
restored first. Otherwise, Syncthing may treat missing files as
deletions, resulting in data loss on all connected devices. If Syncthing
starts up with an empty database, it'll just pull down any missing files
from connected devices instead, which is much safer.

The only downside is that the initial scan will take longer if users do
actually have all of the shared folder data present.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Apr 7, 2026
chenxiaolong added a commit that referenced this pull request Apr 7, 2026
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong merged commit 13f2f78 into master Apr 7, 2026
1 check passed
@chenxiaolong chenxiaolong deleted the database branch April 7, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant