Dealing with Potentially Corrupted Filesystem

Hello,

I’ve been using Syncthing for my personal documents and files for a while now and it works perfectly, now I was thinking about using it to sync two servers that run a kind of a load balancing / redundancy situation used to store maildirs.

From time to time I’ve seen ext4 going bad, be it due to a disk dying or a power issue that made the filesystem go read-only, unmount itself or show as an empty directory.

How does Syncthing handle this types of failures? What will happen if for instance all the files in one of the servers disappear? Will it delete all files on the other server?

What are your general recommendations for a use case like this?

Thank you.

Syncthing trusts the file system, as it must. If it says all files are gone, then that’s what Syncthing sees. If the folder marker is gone the folder will be stopped, but otherwise there’s no special handling.

A well tested backup.

2 Likes

Hm okay great, that would avoid the disaster of a unmounted filesystem. Thanks for the clarification.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.