toniblyx / alfresco-backup-and-recovery-tool

Alfresco BART is a tool written in shell script on top of Duplicity to do Alfresco backups and restore from a local file system, FTP, SCP or Amazon S3.
Apache License 2.0
96 stars 48 forks source link

Solr index backup question #14

Closed hornet76 closed 7 years ago

hornet76 commented 8 years ago

Hello,

First, congrats for this amazing job.

My question concerns the line $DUPLICITYBIN $PARAMS $INDEXES_DIR --exclude $INDEXES_DIR/archive --exclude $INDEXES_DIR/workspace $DEST/$INDEXTYPE/config of your script. My $INDEXES is ALF_DIRROOT/solr4/index and contains only 2 directories "workspace" and "archive" and both are excluded in your command.

Could you explain the goal of this command and tell me if the backup of INDEXES_BACKUP_DIR could be enough to restore Solr ?

Thank you.

Christophe

douglascrp commented 8 years ago

Hello @hornet76 The idea here is not to touch the solr's live data. The right thing to do is to configure solr to create its snapshot, and BART can use the snapshots to perform the backup. Everything you need is out there in the docs. Let me know if you need help to understand and configure this.

douglascrp commented 7 years ago

@toniblyx This is not a problem, so, please, close this issue.