Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8459807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:25:49+00:00 2026-06-10T13:25:49+00:00

A remote CMIS repository contains many folders/files. I am writing a software that keeps

  • 0

A remote CMIS repository contains many folders/files.

I am writing a software that keeps a local copy of these folders/files in sync.

  1. At first run I just download everything recursively.
  2. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:25:51+00:00Added an answer on June 10, 2026 at 1:25 pm

    Using the repository’s change log is the right way to go, but realize that not every repository supports this. For example, for Alfresco you must configure the audit sub-system and you must set audit.cmischangelog.enabled=true in alfresco-global.properties.

    To find out if your repo supports changes you can look as the results of the repository’s getCapabilities response. If you see ‘Changes’ set to ‘None’ then your repository doesn’t support change logs.

    Assuming it does, you need to ask the repository for its latest change log token. You can get that from getRepositoryInfo. Save that before you call getContentChanges. Then, on the next call, pass in the token. You’ll get the changes made since the token was issued.

    So, your code needs to:

    1. Check getCapabilities for something other than Changes = None
    2. Save the getRepositoryInfo’s latestChangeLogToken
    3. The first time you ask, call getContentChanges with no arguments
    4. The next time you ask, call getcontentChanges with the last saved token
    5. You can then process the result set. Each change log entry tells you its type (created, updated, deleted, permissions, etc., see spec for exact values) and provides the cmis:objectId of the changed object.
    6. Repeat with step 2.

    I have a “cmis-sync” script that does one-way synchronization using this approach implemented in Python. I’ve tested it against Alfresco as the source and the OpenCMIS InMemory repository as the target. If there is interest I can make it available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The remote repository contains a bad version. I have the copy of a good
I have a remote SVN repository that I connect to via HTTPS. The repository
There is a remote Maven repository (http://clojars.org/repo) that I would like to use in
Keeping a local and remote WordPress installation in sync is no easy feat. Syncing
We are creating an application in C# that uses CMIS to query remote repositories
When adding a remote (or closing) from another local git repository, is there a
I have a remote repository and a local repo. I did a git fetch
I created remote repositories (release and snapshot) from local repository. Both new remote reposotories
I have a remote call that I make and I am wondering where it
I have cloned a remote SVN repository with git-svn. I have modified a pom.xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.