A remote CMIS repository contains many folders/files.
I am writing a software that keeps a local copy of these folders/files in sync.
- At first run I just download everything recursively.
- At later runs, I check what has changed, and download any changes.
What is the most efficient way to check the remote changes?
(additional/removal of files/folders)
Most efficient = Least bandwidth usage.
I can only use the CMIS protocol, and I can not run any custom software on the remote server.
My ideas so far:
- Idea 1: Re-download everthing every time.
- Idea 2: Check the root folder's modification date, hoping modification dates are recursive.
- Idea 3: Use CMIS search to find all files that are more recent than the last time I synchronized. Problem: that won't tell me which files have been removed.
Any other ideas?
I don't know the CMIS protocol much, there might be something more convenient.