<?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 Backup and restore in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/backup-and-restore/m-p/83514#M25547</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;To continue the evaluation of ACS, I tried to backup my server, build another one and restore the data (disaster recovery!). I looked in the procedures and did not find the exact commands to do. So I proceeded by trial and error and I finally go it. That is my process but maybe I'm missing something or I could do it better ?&lt;/P&gt;&lt;P&gt;The database is MYSQL. The root.dir is : &lt;FONT face="Courier New, monospace"&gt;/opt/alfresco/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Backup :&lt;/P&gt;&lt;PRE&gt;    • sudo /opt/alfresco/ctlscript.sh stop
    • sudo tar -pczvf backup-alfresco-data.tar.gz /opt/alfresco/apps/alfresco/data
    • sudo tar -pczvf backup-alfresco-mysql.tar.gz /opt/alfresco/mysql/data
    • sudo tar -pczvf backup-alfresco-config.tar.gz /opt/alfresco/apache-tomcat/shared/classes
    • sudo /opt/alfresco/ctlscript.sh start&lt;/PRE&gt;&lt;P&gt;Copy the 3 files with SFTP to the second server (I use Bitvise SSH)&lt;/P&gt;&lt;P&gt;Restore :&lt;/P&gt;&lt;PRE&gt;    • sudo /opt/alfresco/ctlscript.sh stop
    • sudo rm -r /opt/alfresco/apache-solr/server/solr/alfresco/index
    • sudo tar -xpzvf backup-alfresco-data.tar.gz -C /
    • sudo tar -xpzvf backup-alfresco-mysql.tar.gz -C /
    • sudo tar -xpzvf backup-alfresco-config.tar.gz -C /
    • sudo /opt/alfresco/ctlscript.sh start&lt;/PRE&gt;&lt;P&gt;You'll notice that I don't bother to backup and restore the Index and just reset them (it seems logical to reindex after a server crash,).&lt;/P&gt;&lt;P&gt;Also I could do a dumpSQL but that's more commands and the database is small in comparison with the data so I don't bother.&lt;/P&gt;&lt;P&gt;Of course, you must also change the IP adress of the ACS server in the DNS.&lt;/P&gt;&lt;P&gt;That's it, a good backup an a tested restore...&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 14:35:21 GMT</pubDate>
    <dc:creator>opsys</dc:creator>
    <dc:date>2020-06-04T14:35:21Z</dc:date>
    <item>
      <title>Backup and restore</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/backup-and-restore/m-p/83514#M25547</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;To continue the evaluation of ACS, I tried to backup my server, build another one and restore the data (disaster recovery!). I looked in the procedures and did not find the exact commands to do. So I proceeded by trial and error and I finally go it. That is my process but maybe I'm missing something or I could do it better ?&lt;/P&gt;&lt;P&gt;The database is MYSQL. The root.dir is : &lt;FONT face="Courier New, monospace"&gt;/opt/alfresco/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Backup :&lt;/P&gt;&lt;PRE&gt;    • sudo /opt/alfresco/ctlscript.sh stop
    • sudo tar -pczvf backup-alfresco-data.tar.gz /opt/alfresco/apps/alfresco/data
    • sudo tar -pczvf backup-alfresco-mysql.tar.gz /opt/alfresco/mysql/data
    • sudo tar -pczvf backup-alfresco-config.tar.gz /opt/alfresco/apache-tomcat/shared/classes
    • sudo /opt/alfresco/ctlscript.sh start&lt;/PRE&gt;&lt;P&gt;Copy the 3 files with SFTP to the second server (I use Bitvise SSH)&lt;/P&gt;&lt;P&gt;Restore :&lt;/P&gt;&lt;PRE&gt;    • sudo /opt/alfresco/ctlscript.sh stop
    • sudo rm -r /opt/alfresco/apache-solr/server/solr/alfresco/index
    • sudo tar -xpzvf backup-alfresco-data.tar.gz -C /
    • sudo tar -xpzvf backup-alfresco-mysql.tar.gz -C /
    • sudo tar -xpzvf backup-alfresco-config.tar.gz -C /
    • sudo /opt/alfresco/ctlscript.sh start&lt;/PRE&gt;&lt;P&gt;You'll notice that I don't bother to backup and restore the Index and just reset them (it seems logical to reindex after a server crash,).&lt;/P&gt;&lt;P&gt;Also I could do a dumpSQL but that's more commands and the database is small in comparison with the data so I don't bother.&lt;/P&gt;&lt;P&gt;Of course, you must also change the IP adress of the ACS server in the DNS.&lt;/P&gt;&lt;P&gt;That's it, a good backup an a tested restore...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 14:35:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/backup-and-restore/m-p/83514#M25547</guid>
      <dc:creator>opsys</dc:creator>
      <dc:date>2020-06-04T14:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Backup and restore</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/backup-and-restore/m-p/83515#M25548</link>
      <description>&lt;P&gt;The best procedure is the one that works for you given the context of your environment (servers, people, and processes), so if it works for you, great.&lt;/P&gt;
&lt;P&gt;I like to use MySQL dump, and I output the dump into the alf_data directory so that when I TAR up the alf_data directory, it has the appropriate MySQL data in it, all wrapped up in one TAR. You cannot really have a successful restore without both, so why risk the two files getting separated or mis-matched?&lt;/P&gt;
&lt;P&gt;As for the config, I don't back it up because I always store all server config in source code control and distribute it to all the servers in my cluster and to each environment (e.g., DEV, TEST, PROD) with Ansible.&lt;/P&gt;
&lt;P&gt;That way, whether it is a fresh install or a minor config change, it's always handled the same: Just run the Ansible playbook.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 19:17:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/backup-and-restore/m-p/83515#M25548</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2020-06-29T19:17:14Z</dc:date>
    </item>
  </channel>
</rss>

