May I suggest using a git based solution for syncing and backing up projects? For free you can use github.com if you don't mind projects being public or bitbucket.org if you need some privacy. Or set up a git server of your own on your LAN - a simple little Pi3b would do the job perfectly fine, assuming you've attached some kind of proper storage to it, not just any old SD card.
Biggest advantage of git is the version control. Code happily knowing that you can step back any changes big and small should you need to. Best thing since buttered toast!