Table des matières

Install Alfresco on EL7

yum install fontconfig libSM libICE libXrender libXext cups-libs libGLU cairo mesa-libGL-devel
wget http://download.alfresco.com/release/community/201707-build-00028/alfresco-community-installer-201707-linux-x64.bin
chmod +x alfresco-community-installer-201707-linux-x64.bin
./alfresco-community-installer-201707-linux-x64.bin
systemctl enable alfresco
echo alfresco | openssl pkcs12 -in /opt/alfresco-community/alf_data/keystore/browser.p12 -passin stdin -out /opt/alfresco-community/alf_data/keystore/browser.pem -nodes
mkdir -p /opt/alfresco-community/dumps/{solr4,db}
# Backup Solr4 indexes
curl -k --cert /opt/alfresco-community/alf_data/keystore/browser.pem:alfresco "https://localhost:8443/solr4/alfresco/replication?command=backup&location=/opt/alfresco-community/dumps/solr4/alfresco&numberToKeep=1"
curl -k --cert /opt/alfresco-community/alf_data/keystore/browser.pem:alfresco "https://localhost:8443/solr4/archive/replication?command=backup&location=/opt/alfresco-community/dumps/solr4/archive&numberToKeep=1"
 
# Some time for Solr4 to finish backups
sleep 600
 
# Backup PG
PGPASSWORD='p@ssw0rd' /usr/pgsql-11/bin/pg_dump \
  --clean \
  --create \
  --username=alfresco \
  --host=localhost \
  alfresco | pxz -c > /opt/alfresco-community/dumps/db/alfresco.sql.xz
 
# Now backup /opt/alfresco-community/alf_data/contentstore and /opt/alfresco-community/dumps/ the way you want
    <Connector port="8080" URIEncoding="UTF-8" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" maxHttpHeaderSize="32768" 
               scheme="https" proxyName="alfresco.domain.tld" proxyPort="443" />
alfresco.context=alfresco
alfresco.host=alfresco.domain.tld
alfresco.port=443
alfresco.protocol=https
 
share.context=share
share.host=alfresco.domain.tld
share.port=443
share.protocol=https

Ressources