AnsweredAssumed Answered

alfresco CE5.2 backup and restore using RSYNC

Question asked by hishjung on Mar 12, 2019
Latest reply on Mar 12, 2019 by kintu.barot@contcentric.com

Hello, everyone!

I am using alfresco community edition 5.2 on centos7 - with bundled postgresql database.

To backup & restore it, i use RSYNC as follows.

 

"  

   #!/bin/sh

 

   INSTALLDIR=/alfresco-community

   now=$(date +"%Y%m%d%H%M")

    $INSTALLDIR/alfresco.sh stop

    ################# backing up alfresco database & contents  #######################

    mkdir /backup/alfbkp/"$now"

    rsync -aAXvr $INSTALLDIR/alf_data  /backup/alfbkp/"$now"/

 

    $INSTALLDIR/alfresco.sh start”

    ################# backing up alfresco database & contents  #######################

"

 

I just copy the root-dir to one backup folder.  

I am not sure that it is ok, because they said you should backup database and alfresco contents like the following document - cold backup procedure.

 

" Cold Backup Procedure

 

By default, the dir.root contains both the content and indexes, and it is possible to backup just the content and then do a full reindex when a backup is restored. A full reindex can be a time consuming process however, so the steps below include the indexes in the backup.

 

  1. Stop Alfresco.
  2. Backup the database Alfresco is configured to use, using your database vendor's backup tools.
  3. Backup the Alfresco dir.root directory in its entirety.
  4. Store both the database and Alfresco dir.root backups together as a single unit. For example, store the backups in the same directory or compressed file.
  5. Start Alfresco.

"

Is there any problem using my backup method? Any comments?

Thanks in advance.

Outcomes