<?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 Re: Backup and Restore Procedures in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295435#M248565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our forums are receiving a large amount of spam everyday and your post was unfortunately flagged as a false-positive. I have deleted the duplicated topic that was also unpublished and published this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the inconvenience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;William&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2016 22:33:04 GMT</pubDate>
    <dc:creator>wharper</dc:creator>
    <dc:date>2016-04-29T22:33:04Z</dc:date>
    <item>
      <title>Backup and Restore Procedures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295433#M248563</link>
      <description>I am trying to create backup and restore procedures for an Alfresco Community 5.1.0 system.After reading Alfresco documentation and forums I created the procedures listed below.I installed a new Alfresco system, created a new (non-admin) user and a new Site.I then followed these steps to backup and</description>
      <pubDate>Fri, 29 Apr 2016 15:27:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295433#M248563</guid>
      <dc:creator>art99trash</dc:creator>
      <dc:date>2016-04-29T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Backup and Restore Procedures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295434#M248564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why is this marked as an "unpublished post"?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 15:31:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295434#M248564</guid>
      <dc:creator>art99trash</dc:creator>
      <dc:date>2016-04-29T15:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Backup and Restore Procedures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295435#M248565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our forums are receiving a large amount of spam everyday and your post was unfortunately flagged as a false-positive. I have deleted the duplicated topic that was also unpublished and published this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the inconvenience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;William&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 22:33:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295435#M248565</guid>
      <dc:creator>wharper</dc:creator>
      <dc:date>2016-04-29T22:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Backup and Restore Procedures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295436#M248566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem and solved it using the information I gathered and customized. &amp;nbsp;I backed up the entire alf_data directory in my process which is:&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;STRONG style="color: #333333; font-size: 20.5pt;"&gt;Alfresco-Community Cold Backup and Restore from a cold backup process&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;orginally posted by Francesco Corti in 2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;In the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Backup_and_Restore" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;Alfresco wiki&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt; is described the backup and restore strategy but is not so clear how to do it in detail. In this post is shared &lt;STRONG&gt;a practical way to perform a restore&lt;/STRONG&gt; of a backed up Alfresco in the way I like: a list of commands and tasks to execute… simpler to understand, to do and to test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;In this example is supposed that &amp;nbsp;Alfresco&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;-Community 201609 EA is installed in ‘/opt/alfresco-community’ folder and the DBMS used is PostgreSQL included with the installer. The restore strategy supposes that the backup is done as a “cold backup” described in this script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#!/bin/bash&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Backup of Alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Written by Chris Newald – localized by Clint Davis Feb 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Configuration:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;CURRENT_FOLDER=$(pwd) # Script folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;TIMESTAMP=$( date +%Y%m%d%H%M%S ) # Create timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;DUMP_NUM=10 # Number of backups to keep&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;AL_FOLDER="/opt/alfresco-community" # Alfresco folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;AL_DATA="/opt/alfresco-community/alf_data" # Alfresco data folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;TARGET_FOLDER=”/backup” # Backup destination folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;DB_HOME="/opt/alfresco-community/postgresql" # PostgreSQL folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Function - Stop Alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;function al_stop()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;$AL_FOLDER/alfresco.sh stop&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# If Alfresco does not stop we MUST exit script&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Backing up files with Alfresco working may&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# corrupt data indexes!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;if [ "$?" != "0" ]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "Alfresco Stop FAILED - STOP SCRIPT!"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;exit 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Alfresco Stopped successfully&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo “Alfresco Stop successful!”&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Function - Start Alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;function al_start()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;$AL_FOLDER/alfresco.sh start&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Function - Start Postgress SQL Server&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;function p_start()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;$DB_HOME/scripts/ctl.sh start&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Verify that argument was provided&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;if [ -d "$1" ]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# A folder has been provided, save it&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;TARGET_FOLDER="$1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# No argument was provided for backup location&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "Usage: $0 [TARGET_PATH]"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;exit 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# 1 - Begin by stopping Alfresco&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;al_stop&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# 2 - Backup the Alfresco database&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#----------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Start the postgress database (which is stopped automatically&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# by the Alfresco stop script&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;p_start&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Create a filename for the database tar&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;DB_DUMP=alfresco_db_${TIMESTAMP}.tar&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Backup the database to the target folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# -Ft = Export database as tar file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;$DB_HOME/bin/pg_dump alfresco -U alfresco -h localhost -F t &amp;gt; $TARGET_FOLDER/$DB_DUMP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Check if an error was returned&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;if [ "$?" = "0" ]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "DB EXPORT WORKED!"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "DB EXPORT FAILED!"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# 3 - Backup the Alfresco content folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Create a file name with timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;AL_DUMP=alfresco_data_${TIMESTAMP}.tgz&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Tar the Alfresco data folder to the backup&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# to the backup folder specified&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;tar zcf $TARGET_FOLDER/$AL_DUMP $AL_DATA&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "Alfresco Data folder tar complete"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# 4 - Merge the database and data files&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# Create a backup filename with timestamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;BACKUP_FILE="alfresco_bak_${TIMESTAMP}.tgz"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;tar zcf $TARGET_FOLDER/$BACKUP_FILE $TARGET_FOLDER/$AL_DUMP $TARGET_FOLDER/$DB_DUMP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "Database and Data File merge complete"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# If files were merged, delete the duplicates&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;if [ -f "$TARGET_FOLDER/$BACKUP_FILE" ]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "BACKUP SUCCESSFUL"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;rm $TARGET_FOLDER/$AL_DUMP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;rm $TARGET_FOLDER/$DB_DUMP&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;SUCCESS=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# 5 - We're done, start the Alfresco service&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;al_start&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;# 6 - Remove backups older than DUMP_NUM days&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;#------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;if [ "$SUCCESS" = 1 ]; then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;find $TARGET_FOLDER/*.tgz -type f -mtime +${DUMP_NUM} -exec rm {} \;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;echo "Backups older than 10 days have been removed"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;fi&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;****************************************************************************************************************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;STRONG style=": ; color: #333333; text-decoration: underline; font-size: 18.0pt;"&gt;NOW LET’S RESTORE FROM BACKUP FILES&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;The following Restore process and script was posted by Francesco Corti in 2013 and was localized by Clint Davis in February 2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;First of all log in as &lt;STRONG style="text-decoration: underline;"&gt;root user.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;1.) Find the backup merged db and data file named “alfresco_bak_yyyymmddtttttt.tgz” and copy it local to Alfresco server in /opt/alfresco-community/postgresql/temp/&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;2.) issue terminal command “tar –xvf alfresco_bak_yyyymmddtttttt.tgz” to extract the folder named ‘backup’ which contains your alfresco data and postgresql database backup files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;3.) Note the file names for use in the commands following.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;&amp;nbsp; Now Stop Alfresco-Community:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;service alfresco stop&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;The DBMS runs using the ‘postgres’ user. Proceed with first task to restore the PostgreSQL database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;su – postgres&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;cd /opt/alfresco-community/postgresql/scripts&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;./ctl.sh start&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;cd /opt/alfresco-community/postgresql/bin&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;./psql&amp;nbsp;&amp;nbsp;&amp;nbsp; (enter password&amp;nbsp;for user 'postgres' when prompted)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;DROP DATABASE alfresco;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;CREATE DATABASE alfresco WITH OWNER alfresco;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;Digit CTRL+d to exit from the shell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;./psql -U alfresco -d alfresco&amp;nbsp;&amp;nbsp; (enter password for user 'postgres'&amp;nbsp;when prompted)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;ALTER USER alfresco WITH PASSWORD 'alfresco password'; &amp;nbsp;(use the admin password for user alfresco here)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;Digit CTRL+d to exit from the shell. Supposing the DBMS backup is stored in the ‘alfresco_&lt;SPAN style="background-color: #f5f5f5;"&gt;db_yyyymmddtttttt&lt;/SPAN&gt;.tar’ file conforming to the backup strategy described &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;, let’s go ahead with the restoring of the database.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;./pg_restore -d alfresco&amp;nbsp;/opt/alfresco-community/postgresql/temp/backup/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;alfresco_db_yyyymmddtttttt.tar&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="background-color: #f5f5f5;"&gt;(enter password&lt;/SPAN&gt;&lt;SPAN style="background-color: #f5f5f5;"&gt;&amp;nbsp;for user 'postgres' when prompted)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;exit&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;Now it’s time to restore the ‘alf_data’ folder with documents and indexes. Also in this case is supposed that the files are stored in a ‘alfresco_&lt;SPAN style="background-color: #f5f5f5;"&gt;data_yyyymmddtttttt&lt;/SPAN&gt;.tgz’ file conforming to the backup strategy described &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;above&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;cd /opt/alfresco-community&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;mv alf_data alf_data.old&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;cd /&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;tar zxvf /opt/alfresco-community/postgresql/temp/backup/&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;alfresco_data_yyyymmddtttttt.tgz&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white; margin: 12.0pt 0in 12.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #333333;"&gt;That’s all!&lt;BR /&gt; Now it’s time to start again Alfresco and use it normally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: whitesmoke; border: none; padding: 0in; margin: 15.0pt 0in 15.0pt 0in;"&gt;&lt;SPAN style="font-size: 10.5pt; color: #666666;"&gt;service alfresco start&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 18:03:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295436#M248566</guid>
      <dc:creator>christbiker</dc:creator>
      <dc:date>2017-02-23T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Backup and Restore Procedures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295437#M248567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guys, noob here; just wondering: "Why aren't you using the cool script «&lt;A href="https://github.com/toniblyx/alfresco-backup-and-recovery-tool" rel="nofollow noopener noreferrer"&gt;BART&lt;/A&gt;» to manage backups"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried and it seems to work (backed up my alfresco install, made a fresh updated install, restored the data, everything seems to work quite well....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give it a try; you'll probably need to implement the restore part you are already wrote on your posts cause it's not yet implemented in the script, but it seems to manage quiet well all the backing up process...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 10:42:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295437#M248567</guid>
      <dc:creator>moro</dc:creator>
      <dc:date>2017-03-14T10:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Backup and Restore Procedures</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295438#M248568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;This solution helps me with this task, but I needed alfresco&amp;nbsp; backup and restore script but in the forum, I don't found a solution I decided to create this scripts and now this available on &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/bruno-oliveira1" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/bruno-oliveira1&lt;/A&gt;&lt;SPAN&gt; I hope yours enjoying. &amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jul 2017 18:42:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/backup-and-restore-procedures/m-p/295438#M248568</guid>
      <dc:creator>bruno_oliveira</dc:creator>
      <dc:date>2017-07-20T18:42:13Z</dc:date>
    </item>
  </channel>
</rss>

