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.
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.
"
Is there any problem using my backup method? Any comments?
Thanks in advance.
You can even take a backup manually as well.
You need to take care of the few points while taking backup.
The order in which you are taking backup i.e. The order of backup must be the first index, database, and then the content stores.
Full re-indexing might take time at first start for a large number of files. So if the number of files is not more then you can prefer reindexing.
You can use any backup script which follows a backup plan in the above-mentioned order.
You can refer this Performing a hot backup | Alfresco Documentation for more info.
Regards,
Kintu
Dear Kintu,
Restoration of your Alfresco backup should not cause any issue.
You might face an issue if your contents and database are inconsistent when you have taken the hot backup.
I have not gone through your backup script but such inconsistency can occur if you have not followed the standard backup order.
Regards,
Kintu
A backup is considered good only AFTER testing a complete restore !
I just did that exercice with a different process and it did not woked out right away...
Check https://hub.alfresco.com/t5/alfresco-content-services-forum/backup-and-restore/m-p/299337#M19641
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.