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

Script fails when the "EXCLUDE" paths are not inside alf_dir #12

Closed douglascrp closed 7 years ago

douglascrp commented 9 years ago

In my case I have Alfresco installed into /opt/alfresco, but my contentstore and index files are in different disks, mounted as /alfresco/alf_data and /alfresco/solr

When the script tries to build the backup line in the function "filesBackup", the script fails when it tries to ignore everything from line 229 to 258.

There must be a duplicity parameter to say something like "if the folder I'm telling you to ignore is not into the folder I'm backing up, ignore the non existence and go ahead"

I quick solved my problem by commenting all those lines.

I hope my explanation was enough, and sorry for the level of details, as I'm writing this in hurry while trying to recover a server.

douglascrp commented 9 years ago

http://lists.nongnu.org/archive/html/duplicity-talk/2010-08/msg00037.html It seems this might be the solution, but I don't have the time to test it right now

douglascrp commented 9 years ago

One more link that seems to confirm my assumption http://sofd.developer-works.com/article/23272899/Trouble+excluding+specific+folders+in+a+duplicity+backup

EDIT: unfortunately, the link is broken

douglascrp commented 7 years ago

Fixed by the commit https://github.com/M-Thirumal/alfresco-backup-and-recovery-tool/commit/45ed58efda98c9ee6156c754bb16f62f45ccc4b8