cancel
Showing results for 
Search instead for 
Did you mean: 

How to force a Full Sync

james13
Champ on-the-rise
Champ on-the-rise
Hello,

I have just installed the last version of Alfresco 5.0.d in a Windows Server x64 and I have connected it to the LDAP AD. Alfresco didn't crate some users and I would force a FULL Sync LDAP->Alfresco. I have tried to do it restarting the system but I know there is a timestamp that Alfresco check evey time I restart it. so my questions are:

1) Can I force the timestamp to an old value so it can re-sync all the users?

2) Can I change the crontask to run every 30 minutes (differential or full mode) ?

3) Where and how can I specify which LDAP attributes the cron have to import and in which ALfresco attributes?

Many thanks in advance….
4 REPLIES 4

james13
Champ on-the-rise
Champ on-the-rise
someone can help me?

mandalinaveen
Champ on-the-rise
Champ on-the-rise
Hi,
Are you using Enterprise edition or community edition. In Enterprise edition go to admin console and in the Directory management goto sync settings.
Uncheck the Sync changes only and check the allow deletions. Check the sync when startup. It will force the full sync

Regards,
Naveen.

Hi, I am using the community edition
Thanks
James

in Community edition Full sync never happens on startup, only incremental syncs happen at startup.  Full sync can only happen via the scheduled sync job.  Assuming that what you want to do is:

1. do one full sync
2. switch back to incremental sync

You'll want to do the following:

1. in alfresco-global.properties, set:
   synchronization.import.cron=0 30 9 * * ?

   Note that that's quartz cron, not unix cron.  So the first number is
   *seconds*.  I set it to 9:30 just for debugging.  You would set it to
   a few (e.g., 5-10) minutes.  It needs to be set long enough away from
   now that alfresco would finish starting up before the cron job fires.

2. in the same file, set:
   synchronization.synchronizeChangesOnly=false

3. save that file and restart alfresco.

4. wait for the sync to fire and complete.

5. change the schedule back to something more reasonable, e.g., midnight.

6. change synchronizeChangesOnly to true so the next scheduled
   sync will be incremental.

7. restart alfresco.

If your LDAP is small enough that you don't mind doing full syncs all the time, you could just keep synchronizeChangesOnly=false all the time.