AnsweredAssumed Answered

Switching from cold to hot backup

Question asked by mpw on Feb 4, 2015
Latest reply on Feb 9, 2015 by mpw

I used to do cold backups, as it was easier to configure. But the alfresco-data has serveral GB now and the down time has become quite long. So I want to switch to hot backups.

I'm a little scared to do something wrong. Ofc I read the Wiki:

- Do I have to create the lucene indexes before each backup, or does Alfresco do this periodically automatically? It's marked as optional, what are the disadvantages of not doing it?
- What kind of command can I use to hot backup a postgresql-database? Are there smarter ways than just dumping it?

Right now, I basically stop alfresco. And then I just save the data directory and dump the database:

sudo -u postgres pg_dump -Fc alfresco >> $date/$date-datenbank.dump 2>> $log
tar cjpf $date/$date-alf_data.tar.bz2 /var/lib/tomcat7/alf_data &>> $log

Do I have to synchronize the backup of the database in any way with the alfresco backup? Or does the lucene index care about that?

Greetings from Germany