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.
- Stop Alfresco.
- Backup the database Alfresco is configured to use, using your database vendor's backup tools.
- Backup the Alfresco
dir.root directory in its entirety. - 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. - Start Alfresco.
"
Is there any problem using my backup method? Any comments?
Thanks in advance.