<?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: how to get the data and metadata from Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262654#M215784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok Eric, but no need to copy the folder&amp;nbsp; "alf_index", I thought it was a repository for the index of data, and it is also necessary?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 07:01:08 GMT</pubDate>
    <dc:creator>amantay</dc:creator>
    <dc:date>2011-11-18T07:01:08Z</dc:date>
    <item>
      <title>how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262652#M215782</link>
      <description>Hi friends,I need to move data from one server to another. With all the metadata and the database. How to do it?thanks advance!</description>
      <pubDate>Thu, 17 Nov 2011 11:11:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262652#M215782</guid>
      <dc:creator>amantay</dc:creator>
      <dc:date>2011-11-17T11:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262653#M215783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My approach would be to take a backup of the contentstore and the database, and then restore this onto the new server where you have installed a vanilla Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 17:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262653#M215783</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2011-11-17T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262654#M215784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok Eric, but no need to copy the folder&amp;nbsp; "alf_index", I thought it was a repository for the index of data, and it is also necessary?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 07:01:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262654#M215784</guid>
      <dc:creator>amantay</dc:creator>
      <dc:date>2011-11-18T07:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262655#M215785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should follow a normal backup routine. That is for (offline backup):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Stop Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Backup the database (mysqldump if you are running mysql)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Backup the alf_data directory. (this one contains the contentstore and the indexes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Start Alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to run an online backup you should exclude the lucene-indexes folder from the backup, otherwise you will end up with a corrupt contentstore. You will then need to reindex (from the point of time of the backup-lucene-indexes timestamps) by "setting index.recovery.mode=FULL"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is an example of a offline backup script I wrote for a windows environment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blog.billerby.com/backup-of-alfresco-in-a-windows-environment" rel="nofollow noopener noreferrer"&gt;http://blog.billerby.com/backup-of-alfresco-in-a-windows-environment&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 07:10:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262655#M215785</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2011-11-18T07:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262656#M215786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I started working with Alfresco recently, and I fear that I not quite understand your explanation, could you please describe in detail all the action? My OS is Linux(Ubuntu), I'm using Alfresco-3.4.c with own mysql. Thanks..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 07:51:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262656#M215786</guid>
      <dc:creator>amantay</dc:creator>
      <dc:date>2011-11-18T07:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262657#M215787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;amantay,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, I'm pasting a linux - online backup script below that works for me on a 3.4.c community default installation. Make sure the environmnent variables in the beginning of the file are correct. Run the command and you will get a compressed file containing an sql-file and the alf_data directory. In the script there are restoration instructions, so you just have to move the file to your new machine, unzip, untar and replace the alf_data-dir of your new installation. Then import the sql-file as instructed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;# Script assumes that Alfresco Database exists and that the user alfresco&lt;BR /&gt;# has been granted appropriate permissions&lt;BR /&gt;# i.e.&lt;BR /&gt;# from mysql prompt: create database alfresco;&lt;BR /&gt;# grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco' &lt;BR /&gt;# with grant option;&lt;BR /&gt;# grant all on alfresco.* to 'alfresco'@'localhost.localdomain' identified by &lt;BR /&gt;#'alfresco' with grant option;&lt;BR /&gt;#&lt;BR /&gt;# Author Erik Billerby, Acando&lt;BR /&gt;&lt;BR /&gt;ALF_BASEDIR=/opt/alfresco&lt;BR /&gt;ALF_DATA_DIRNAME=alf_data&lt;BR /&gt;ALF_BACKUP_DIR=backup&lt;BR /&gt;MYSQL_HOME=/opt/alfresco/mysql&lt;BR /&gt;DB_USERNAME=alfresco&lt;BR /&gt;DB_PWD=alfresco&lt;BR /&gt;DB_NAME=alfresco&lt;BR /&gt;TODAY_STRING=`date +%Y%m%d-%H%M`;&lt;BR /&gt;MAX_AGE=10&lt;BR /&gt;BACKUP_DEL_CMD="rm {}"&lt;BR /&gt;echo "=== Starting hot backup of Alfresco ==="&lt;BR /&gt;&lt;BR /&gt;# First stop Alfresco&lt;BR /&gt;# echo "=== Stopping Alfresco ==="&lt;BR /&gt;# $ALF_BASEDIR/alfresco.sh stop&lt;BR /&gt;&lt;BR /&gt;# Navigate to the alf_data.dir&lt;BR /&gt;cd $ALF_BASEDIR/$ALF_DATA_DIRNAME&lt;BR /&gt;&lt;BR /&gt;# Create a database dump and store it togheter with the data.&lt;BR /&gt;$MYSQL_HOME/bin/mysqldump -u$DB_USERNAME -p$DB_PWD $DB_NAME &amp;gt; $DB_NAME.sql&lt;BR /&gt;sleep 10;&lt;BR /&gt;&lt;BR /&gt;cd $ALF_BASEDIR&lt;BR /&gt;&lt;BR /&gt;# tar and gzip the data directory and move this to the backup folder, &lt;BR /&gt;# using a date extension in the name for easy identification&lt;BR /&gt;# Exclude the lucene indexes, since this is a hot backup procedure.&lt;BR /&gt;# Lucene indexes will be automatically rolled forward to a correct&lt;BR /&gt;# state by Alfresco from the backup-lucene-indexes folder. &lt;BR /&gt;# For this to happen the index.recovery.mode property must be set&lt;BR /&gt;# to AUTO (repository.properties OR alfresco-global.properties) &lt;BR /&gt;tar -cvzpP –file=$ALF_BACKUP_DIR/$TODAY_STRING.tar.gz –exclude='lucene-indexes' $ALF_DATA_DIRNAME&lt;BR /&gt;&lt;BR /&gt;# delete the mysqldump file from the alf.data_dir&lt;BR /&gt;echo "Removing temporary mysql backup file $ALF_DATA_DIRNAME/$DB_NAME.sql"&lt;BR /&gt;rm -f $ALF_DATA_DIRNAME/$DB_NAME.sql&lt;BR /&gt;&lt;BR /&gt;# Remove tar files older than number of days specified in $MAX_AGE&lt;BR /&gt;find $ALF_BACKUP_DIR -mindepth 1 -maxdepth 1 -name "*.tar.gz" -daystart -ctime +$MAX_AGE -exec $BACKUP_DEL_CMD \;&lt;BR /&gt;&lt;BR /&gt;echo "=== Backup of Alfresco finished ==="&lt;BR /&gt;# Command to untar the backup file:&lt;BR /&gt;# tar -xvf filename.tar&lt;BR /&gt;&lt;BR /&gt;# Copy the untared alf_data folder to ALF_BASEDIR:&lt;BR /&gt;# cp -R backup/alf_data .&lt;BR /&gt;&lt;BR /&gt;# Command to restore the database (and yes it should be latin1 &lt;BR /&gt;# even if the db and tables are set to utf8):&lt;BR /&gt;# mysql -u$DB_USERNAME -p$DB_PWD –default-character-set=latin1 $DB_NAME &amp;lt; $DB_NAME.sql&lt;BR /&gt;&lt;BR /&gt;#echo "=== Starting Alfresco ==="&lt;BR /&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;/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;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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gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 08:23:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262657#M215787</guid>
      <dc:creator>billerby</dc:creator>
      <dc:date>2011-11-18T08:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the data and metadata from Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262658#M215788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much Erik!,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tip for the future, if you are a beginner :wink: . In this file (&amp;lt;alfresco_home&amp;gt;/tomcat/shared/classes/alfresco-global.properties) you have all information about your alfresco. And get information about the following PATH's from alfresco-global.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ALF_BASEDIR=/opt/alfresco&amp;nbsp; # this is my &amp;lt;alfresco_home&amp;gt;&lt;BR /&gt;ALF_DATA_DIRNAME=/opt/storage/alf_data&lt;BR /&gt;ALF_BACKUP_DIR=backup # create new folder in &amp;lt;alfresco_home&amp;gt;&lt;BR /&gt;MYSQL_HOME=/opt/alfresco/mysql &lt;BR /&gt;DB_USERNAME=alfresco&lt;BR /&gt;DB_PWD=alfresco&lt;BR /&gt;DB_NAME=alfresco&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;in my alfresco-global.properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;…&lt;BR /&gt;dir.root=/opt/storage/alf_data&lt;BR /&gt;…&lt;BR /&gt;db.username=alfresco&lt;BR /&gt;db.password=alfresco&lt;BR /&gt;db.name=alfresco&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 09:55:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-the-data-and-metadata-from-alfresco/m-p/262658#M215788</guid>
      <dc:creator>amantay</dc:creator>
      <dc:date>2011-12-08T09:55:25Z</dc:date>
    </item>
  </channel>
</rss>

