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

Fatal Error: The file specification true cannot match any files in the base directory #36

Closed vipulswarup closed 6 years ago

vipulswarup commented 6 years ago

Hi All

I am trying to backup a test Alfresco 5.2 community installation to AWS S3. This is running on Ubuntu 16.04 LTS.

For some reason it doesn't backup the contentstore and I get the below error message:

Fatal Error: The file specification
    true
cannot match any files in the base directory
    /opt/installations/systest/alf_data
Useful file specifications begin with the base directory or some
pattern (such as '**') which matches the base directory.

I am running this as root - and the root user has full access to all folders in alf_data. Also attaching the alfresco-bart.properties file here for reference (had to add .txt at end of file name, as github refuses to upload a .properties file) alfresco-bart.properties.txt

Any ideas would be appreciated.

Thanks Vipul

toniblyx commented 6 years ago

Hi @vipulswarup, it looks like that is a Duplicity error. Can you try doing backup to local instead of S3 to see if the error persist? It can be related to duplicity dependences with boto (aws python library). Can you also tray with ${ALF_INSTALLATION_DIR}/alf_data/ (note the last forward slash).

vipulswarup commented 6 years ago

Hi @toniblyx - thanks for your response. The added forward slash didn't help. But I fixed it by making the below changes:

From: ALF_CONTENSTORE_DELETED=true To: ALF_CONTENSTORE_DELETED=

and From: BACKUP_INDEX_ENABLED=yes To: BACKUP_INDEX_ENABLED=Y