The Crisis du Jour

Yesterday I decided to activate the CloudStation feature on my Synology NAS to keep files synchronized and backed up locally on our home network. Included in the sync is my main development folder, which for some projects includes .git repositories.

Today I attempted to open some firmware I’ve been working on and IAR immediately starts yelling at me that files are missing from the project. WHAT?!

Checking the folder showed that some of the files have been modified by CloudStation because there are file conflicts. Thinking I could just re-pull the repo from the remote, I opened SourceTree, which immediately crashed because the config file had been modified outside of the application.

Sure enough, the git directory for this firmware repo is corrupted, and CloudStation is in the middle of syncing files on the network. See for yourself below.

This is what Synology CloudStation does to git repos.

This is what Synology CloudStation does to git repos.


This is unacceptable. I can’t have the cloud service trashing my files while I’m working with them, just because they recently have been saved. The weird thing is that if I look at the directory on the NAS in the File Station folder, it has properly named files that haven’t been synced back to my machine yet.

I guess I’ll wait for the 18000+ files to sync to see if it resolves, then I’m going to selectively remove that directory from the sync process. I don’t think it would be wise to manually modify the repo files.

I’ve also opened a ticket with Synology. Will post a follow up.