<?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 Back up Solr6 Indexes on Alfresco community 6.2.0 from Docker in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/back-up-solr6-indexes-on-alfresco-community-6-2-0-from-docker/m-p/112611#M31381</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Currently running Alfresco Community Edition 6.2.0 on linux 18.04, installed via docker from the official template on the website.&lt;BR /&gt;&lt;BR /&gt;The service is doing fine and working great. However &lt;FONT face="arial black,avant garde"&gt;i would like to try a backup and restore&lt;/FONT&gt; in case of disaster, but i can't make it work.&lt;BR /&gt;&lt;BR /&gt;Here is what i did :&lt;/P&gt;&lt;P&gt;I used a bind mount to put the alfresco repository in, automaticly mounted via the docker-compose.yml (alf_data)&lt;/P&gt;&lt;P&gt;--&amp;gt; This seems to work well, no error in indexing or anything. The data are sync on my VM with the container. The original installation has no error.&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;BACKUP : &lt;/FONT&gt;I did a dumb of my postgresql DB using&lt;/P&gt;&lt;PRE&gt;docker exec -i containerid pg_dump -c --username alfresco alfresco &amp;gt; /root/backupbackup/dbdumb.sql&lt;/PRE&gt;&lt;P&gt;Then, i copied the alf_data file of the binded mount to my VM&lt;/P&gt;&lt;PRE&gt;cp -r /root/mountedbind/alf_data /root/backupbackup/alf_data&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;RESTORE :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I then deleted the container, reinstalled alfresco via the same docker-compose.yml. Worked fine so far, again.&lt;/P&gt;&lt;P&gt;Then i imported the alf_data backup and the postgresql backup with&lt;/P&gt;&lt;PRE&gt;docker exec -i containerid pg_restore --username alfresco alfresco &amp;lt; /root/backupbackup/dbdumb.sql
sudo rsync /backupbackup/alf_data /mountedbind/alf_data&lt;/PRE&gt;&lt;P&gt;Result : I can't find any of the file (testing images put into the server) that i had before. I actualy can't put any more file inside the alfresco share.&amp;nbsp; --&amp;gt; Feels like i did something wrong&lt;/P&gt;&lt;P&gt;Though: I know i'm supposed to backup Solr6 Indexes, but as i'm on the community edition, i don't have the Share Admin console to execute the Solr6 Backup. I tried putting these settings in alfresco-global.properties but i only have errors according to the path.&lt;/P&gt;&lt;PRE&gt;solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco
solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive&lt;/PRE&gt;&lt;P&gt;I can't find any other documentation to help me backing up the Solr6 Indexes on alfresco.&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;Questions&lt;/FONT&gt; :However, just backing up the alf_data and the DB i should be able to retrieve my files, no ?&lt;/P&gt;&lt;P&gt;If no, how to backup Solr6 Indexes, and am i doing the others backup fine ?&lt;/P&gt;&lt;P&gt;Thanks you for your time,&lt;BR /&gt;Simon.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 08:43:17 GMT</pubDate>
    <dc:creator>Rituels</dc:creator>
    <dc:date>2020-11-25T08:43:17Z</dc:date>
    <item>
      <title>Back up Solr6 Indexes on Alfresco community 6.2.0 from Docker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-up-solr6-indexes-on-alfresco-community-6-2-0-from-docker/m-p/112611#M31381</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Currently running Alfresco Community Edition 6.2.0 on linux 18.04, installed via docker from the official template on the website.&lt;BR /&gt;&lt;BR /&gt;The service is doing fine and working great. However &lt;FONT face="arial black,avant garde"&gt;i would like to try a backup and restore&lt;/FONT&gt; in case of disaster, but i can't make it work.&lt;BR /&gt;&lt;BR /&gt;Here is what i did :&lt;/P&gt;&lt;P&gt;I used a bind mount to put the alfresco repository in, automaticly mounted via the docker-compose.yml (alf_data)&lt;/P&gt;&lt;P&gt;--&amp;gt; This seems to work well, no error in indexing or anything. The data are sync on my VM with the container. The original installation has no error.&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;BACKUP : &lt;/FONT&gt;I did a dumb of my postgresql DB using&lt;/P&gt;&lt;PRE&gt;docker exec -i containerid pg_dump -c --username alfresco alfresco &amp;gt; /root/backupbackup/dbdumb.sql&lt;/PRE&gt;&lt;P&gt;Then, i copied the alf_data file of the binded mount to my VM&lt;/P&gt;&lt;PRE&gt;cp -r /root/mountedbind/alf_data /root/backupbackup/alf_data&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;RESTORE :&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I then deleted the container, reinstalled alfresco via the same docker-compose.yml. Worked fine so far, again.&lt;/P&gt;&lt;P&gt;Then i imported the alf_data backup and the postgresql backup with&lt;/P&gt;&lt;PRE&gt;docker exec -i containerid pg_restore --username alfresco alfresco &amp;lt; /root/backupbackup/dbdumb.sql
sudo rsync /backupbackup/alf_data /mountedbind/alf_data&lt;/PRE&gt;&lt;P&gt;Result : I can't find any of the file (testing images put into the server) that i had before. I actualy can't put any more file inside the alfresco share.&amp;nbsp; --&amp;gt; Feels like i did something wrong&lt;/P&gt;&lt;P&gt;Though: I know i'm supposed to backup Solr6 Indexes, but as i'm on the community edition, i don't have the Share Admin console to execute the Solr6 Backup. I tried putting these settings in alfresco-global.properties but i only have errors according to the path.&lt;/P&gt;&lt;PRE&gt;solr.backup.alfresco.remoteBackupLocation=${dir.root}/solrBackup/alfresco
solr.backup.archive.remoteBackupLocation=${dir.root}/solrBackup/archive&lt;/PRE&gt;&lt;P&gt;I can't find any other documentation to help me backing up the Solr6 Indexes on alfresco.&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;Questions&lt;/FONT&gt; :However, just backing up the alf_data and the DB i should be able to retrieve my files, no ?&lt;/P&gt;&lt;P&gt;If no, how to backup Solr6 Indexes, and am i doing the others backup fine ?&lt;/P&gt;&lt;P&gt;Thanks you for your time,&lt;BR /&gt;Simon.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 08:43:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-up-solr6-indexes-on-alfresco-community-6-2-0-from-docker/m-p/112611#M31381</guid>
      <dc:creator>Rituels</dc:creator>
      <dc:date>2020-11-25T08:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Back up Solr6 Indexes on Alfresco community 6.2.0 from Docker</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/back-up-solr6-indexes-on-alfresco-community-6-2-0-from-docker/m-p/112612#M31382</link>
      <description>&lt;P&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/83390"&gt;@Rituels&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;If you made your backup online you need to restore the lucene/solr-index from&lt;/P&gt;&lt;PRE&gt;solr.{backup,archive}.alfresco.remoteBackupLocation&lt;/PRE&gt;&lt;P&gt;by just replacing the right (sub)folder from your solr index location&lt;BR /&gt;&lt;BR /&gt;It may be more convenient to use the solr backup/restore api directly since the alfresco solr-backup is just a more or less dump wrapper to call the backup REST api &lt;A href="https://lucene.apache.org/solr/guide/6_6/making-and-restoring-backups.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://lucene.apache.org/solr/guide/6_6/making-and-restoring-backups.html&lt;/A&gt; To be able to access that REST API you may need to create/import the repos client certificate for authentication.&lt;BR /&gt;&lt;BR /&gt;We don't rely on alfresco's solr-backup and prefer the solr-api directly to be integrated in our whole backup/restore/monitoring workflow.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 12:23:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/back-up-solr6-indexes-on-alfresco-community-6-2-0-from-docker/m-p/112612#M31382</guid>
      <dc:creator>heiko_robert</dc:creator>
      <dc:date>2020-11-25T12:23:17Z</dc:date>
    </item>
  </channel>
</rss>

