How to force a cloud storage service to synchronise an encrypted file

cloud-storagedropboxonedrivesyncveracrypt

I made a Veracrypt file in my OneDrive / Dropbox folders.
I then mounted the file in Veracrypt and added some financial records to the volume and unmounted it.

Even though the contents of the encrypted volume had changed, the file itself had the same dates and size.

Will OneDrive / Dropbox / Google drive sync it when I make a future changes because they look at the actual file contents? Or will they think it's the same file as on the server and I'll not save any changes to the cloud?

If it's the latter case, how should I force syncing? Change the filename?

Best Answer

How cloud synching works

OneDrive support replied & told me they don't support encrypted files (i.e. they use date & file name to detect changes, not file contents \ hash).

I've logged a request for them to use hashing: https://onedrive.uservoice.com/forums/262982-onedrive/suggestions/13292115-detect-changes-to-files-based-on-the-file-contents

I haven't found any information yet on how Dropbox \ Google Drive detects changes.

General solution that is tedious

The only general solution is to:

  • move the file out of your sync folder
  • rename it
  • move it back again

OneDrive then detects it as a new file and uploads it (and deletes the old one in the cloud)

Best solution (if you use Veracrypt)

However here is the ideal solution if you're using Veracrypt (Truecrypt):

Now the file date changes every time you change the contents and cloud backup services will always reupload it.

Related Question