<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to disable Solr Backup in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312495#M265625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is there someone who has totally disabled the solr Backup scheduler in Alfresco Community?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to set the "numberToKeep" properties to 0 for both archive and alfresco stores but it doesn't work. The cron trigger start anyway and a backup is performed…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use Alfresco Community 4.2.f with the following configurations in the alfresco-global.properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;### Start backup every 1 minute&lt;BR /&gt;solr.backup.alfresco.cronExpression=0 0/1 * * * ?&lt;BR /&gt;solr.backup.archive.cronExpression=0 0/1 * * * ?&lt;BR /&gt;&lt;BR /&gt;### The backup directory&lt;BR /&gt;solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco&lt;BR /&gt;solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive&lt;BR /&gt;&lt;BR /&gt;### Trying to disable backup using 0 retention&lt;BR /&gt;solr.backup.alfresco.numberToKeep=0&lt;BR /&gt;solr.backup.archive.numberToKeep=0&lt;BR /&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually, a (not recommended) workaround is to comment the two cron triggers bean's definition in webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Search/solr/solr-backup-context.xml&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;bean id="search.alfrescoCoreBackupTrigger" class="org.alfresco.util.CronTriggerBean"&amp;gt;&lt;BR /&gt; &amp;lt;!– blablabla –&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &amp;lt;!– blablabla –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="search.archiveCoreBackupTrigger" class="org.alfresco.util.CronTriggerBean"&amp;gt;&lt;BR /&gt; &amp;lt;!– blablabla –&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However this is not a good practice because I have to touch a&amp;nbsp; spring context of exploded alfresco&amp;nbsp; in the Tomcat webapps directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any suggestion?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Nov 2014 19:07:12 GMT</pubDate>
    <dc:creator>joe_l3</dc:creator>
    <dc:date>2014-11-14T19:07:12Z</dc:date>
    <item>
      <title>How to disable Solr Backup</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312495#M265625</link>
      <description>Hi all,is there someone who has totally disabled the solr Backup scheduler in Alfresco Community?I tried to set the "numberToKeep" properties to 0 for both archive and alfresco stores but it doesn't work. The cron trigger start anyway and a backup is performed…I use Alfresco Community 4.2.f with the</description>
      <pubDate>Fri, 14 Nov 2014 19:07:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312495#M265625</guid>
      <dc:creator>joe_l3</dc:creator>
      <dc:date>2014-11-14T19:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable Solr Backup</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312496#M265626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to never run the specific scheduler then you should set the cron expression for the scheduler as mentioned here in quotes "* * * * * ? 2099". This will never run the scheduler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Nov 2014 02:36:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312496#M265626</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-11-16T02:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable Solr Backup</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312497#M265627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Putting a far value in the future doesn't totally disable the scheduler but postpone it…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was looking for a good and supported solution to totally disable the scheduler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:25:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-disable-solr-backup/m-p/312497#M265627</guid>
      <dc:creator>joe_l3</dc:creator>
      <dc:date>2014-11-24T16:25:21Z</dc:date>
    </item>
  </channel>
</rss>

