cancel
Showing results for 
Search instead for 
Did you mean: 

Backup Alfresco by copying the entire /opt/alf* dir?

dc41
Champ in-the-making
Champ in-the-making
Is Alfresco now "self contained?" In other words, when I install Alfresco Community v4.0.0 (4003) schema 5025 does it install everything but the startup/shutdown scripts in the /opt/alfresco-4.0.d folder?

I was reading through the backup and restore procedures, and the thought occurred to me that I might just save some time by back up the whole folder. I have plenty of backup space. If anything goes wrong and I need to restore from the backup, I could just restore the whole folder.

Does anyone know if this would work?

Thanks!
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Yes in principle.   However you are backing up more Than you need.   And you must not access the Lucene directories while Lucene is running.

bbqigniter
Champ in-the-making
Champ in-the-making
have a look at: http://wiki.alfresco.com/wiki/Backup_and_Restore

only backing up the data-folder isn't enough. you also need to backup the database

dc41
Champ in-the-making
Champ in-the-making
have a look at: http://wiki.alfresco.com/wiki/Backup_and_Restore

only backing up the data-folder isn't enough. you also need to backup the database

Isn't the database also kept in the data-folder? As long as it's shutdown, wouldn't it get backed up with the rest of the folder (as long as lucene isn't running?

I'm envisioning using cron to stop alfresco at 1:55 am, the run Simple Backup to back up my home and opt folders. The cron restarts at 3:30am or something like that.

I'll reread the docs on backup and restore. Maybe I missed something.

Thanks!

mrogers
Star Contributor
Star Contributor
It depends upon which database you are using.   PostGresSQL can probably be backed up like that way,   Don't think it works with mysql.

Try it and see, as I said above, in principle it will work.

There will be a few caveats though such as if there are any absolute paths in your configuration you will only be able to restore to the same location.