Validate that Synology Cloud Sync has uploaded all files

What is it?

At home I have a Synology DiskStation DS215j, and I have installed Cloud Sync in order to synchronize a directory on my Synology with a webdav connectoin.
I used this guide to connect my Cloud Sync to a webdav connection.

A couple of weeks ago I noticed that Cloud Sync stated ‘Up to date’

But after a closer look I saw ‘Upload Failed’ events in the History tab

What needs to be done?

In order to sleep well, I want to be sure that all my data on my Synology is uploaded through the configured webdav connection.

Left, the web interface of my webdav storage at Stack, on the right the directories on the Synology

The code

All the code can be found on my github:
https://github.com/timdows/ValidateWebdavUploads

It works as follows:

  1. Get a list of the files on my Synology
  2. For every file, check if it exists on the Webdav server, it uses WebDavClient from skazantsev
  3. If it exists, check if the size of the files match
Output of the console application

Results

So I was missing a couple of files and kicked Synology to upload them again, but for all the files being uploaded, the size is correct (did not expect that to be honest)

One thought on “Validate that Synology Cloud Sync has uploaded all files

Leave a Reply

Your email address will not be published. Required fields are marked *