12-19-2022 07:35 AM
Hi Team;
As described in Alfresco tutorial 'Community Edition includes a background job responsible for backing up the Solr 6 indexes that (by default) is configured to run at 3am each night'.
And ' the cron job is run at 2 am for alfrescoCore and 4 am for archiveCore'
My question is that how to change the run time of Cron job?
Thanks a lot!
12-19-2022 04:09 PM
Hi,
You can try to modify the following properties on the alfresco-global.properties file:
- solr.backup.alfresco.cronExpression
- solr.backup.archive.cronExpression
You need to set the time using UNIX format about when you want that the each backup is done.
If that changes don't work, I think you will have to change the configuration on Solr Service.
Please, try it and answer me.
12-19-2022 07:42 PM
Hi,
Thank you so much for your help.
I added properties as shown in the picture below, then I restart the ACS server, about 10 minutes later, it seems not work.
12-20-2022 01:00 PM
Hi:
I'm not sure at what time are you trying to do SOLR backups.
Although the property is labeled as a cronjob, it is a quartz job, so the first number in the expression are seconds.
<second> <minute> <hour> <day of the month> <month> <day of the week> <year>
By the way, in last versions of ASS 2.0.x, the backup remote location is set in solrcore.properties (not in alfresco-global.properties).
Regards.
--C.
12-21-2022 09:31 PM
Hi,
Thank you so much for your reply.
At this time, the Cron job working properly as following picture.
But the property 'backup remote location' still not work.
Even I added below two properties in following four solrcore.properties files :
solr.backup.alfresco.remoteBackupLocation=D:/Alfresco/alfresco-community72/alf_data/solr6Backup/alfresco
solr.backup.archive.remoteBackupLocation=D:/Alfresco/alfresco-community72/alf_data/solr6Backup/archive
*\alfresco-search-services\solrhome\alfresco\conf\solrcore.properties
*\alfresco-search-services\solrhome\archive\conf\solrcore.properties
*\alfresco-search-services\solrhome\templates\noRerank\conf\solrcore.properties
*\alfresco-search-services\solrhome\templates\rerank\conf\solrcore.properties
Explore our Alfresco products with the links below. Use labels to filter content by product module.