2 ms·
I've had my Synology DS918+ for about a year, and overall I've been happy with it except for one huge mess with encrypted folders completely wrecking my Dropbox
by JeremyHerrman 5y ago
I've had my Synology DS918+ for about a year, and overall I've been happy with it except for one huge mess with encrypted folders completely wrecking my Dropbox for a few weeks. Here's what happened:
I wanted to have a backup of my Dropbox on my NAS, so I used Synology's CloudSync service to back up to an encrypted folder. Unfortunately Synology's encryption actually encrypts each file individually, which Dropbox happily syncs to all of the computers that use that Dropbox, making all of those files unusable!
In the end, I had to write a script that detected which files were encrypted (files start with `__CLOUDSYNC_ENC__`), then use a WINDOWS ONLY decryption utility provided by Synology to decrypt and finally get back to a clean state. Then I wrote another script to move the decrypted files back into the proper path in Dropbox while correcting the newly decrypted files with the original metadata (creation date) from the encrypted bad files. What a pain!!
I'm still not sure of a good way to achieve my original goal of backing up Dropbox while still protecting my data with encryption. Let me know if anyone has a solution!
- hikarudo 5y agoCouldn't you have simply restored the original files via the Dropbox web UI?
- bulatb 5y agoAre you using CloudSync's encryption feature? That's meant more for using Dropbox (or whatever) as the mirror and giving it encrypted files which your NAS nodes will transparently decrypt, like Synology's version of Boxcryptor. To back up data from Dropbox, I'd create an encrypted Shared Folder on the NAS, turn off CloudSync encryption, and sync into the folder with the sync direction set to pull-only. That gives you a mirror with local file system-level encryption (using ecryptfs; buyer beware) and keeps Dropbox as your source of truth. There may be a different way to do it with DSM 7, but I've only tried this on 6.