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

How to use BART if postgresql is running on diffrent server #21

Closed m-thirumal closed 7 years ago

m-thirumal commented 7 years ago

I have installed PostgreSQL and Alfresco in different server. I am not able to take back up using BART. Getting below error Fatal Error: The file specification /home/thirumal/alfresco-db-backup cannot match any files in the base directory /opt/alfresco-community Useful file specifications begin with the base directory or some pattern (such as '**') which matches the base directory.

Any suggestion ?

douglascrp commented 7 years ago

@M-Thirumal I believe that is not a problem with the script, but an setup one. You will need pg_dump available somewhere. So, no need to have the postgresql service running locally, but you do need to have the utility used to access the database. Because of that, I am closing the issue.

douglascrp commented 7 years ago

@M-Thirumal One more info. Take this thread as an example on how to setup an Ubuntu server to have only the client component. http://askubuntu.com/questions/501091/command-pg-dump-not-found

m-thirumal commented 7 years ago

Thanks @douglascrp . I found a problem. I did few changes in

alfresco-bart.sh

    fi
    if [ -d "$ALF_CONTENTSTORE3" ]; then
            OPT_ALF_CONTENTSTORE3=" --exclude **$ALF_CONTENTSTORE3**"
    fi
    if [ -d "$ALF_CONTENTSTORE4" ]; then
            OPT_ALF_CONTENTSTORE4=" --exclude **$ALF_CONTENTSTORE4**"
    fi
    if [ -d "$ALF_CONTENTSTORE5" ]; then
            OPT_ALF_CONTENTSTORE5=" --exclude **$ALF_CONTENTSTORE5**"
    fi
    if [ -d "$LOCAL_BACKUP_DB_DIR" ]; then
            OPT_LOCAL_BACKUP_DB_DIR=" --exclude **$LOCAL_BACKUP_DB_DIR**"
    fi

This problem with duplicity. ** Thanks @douglascrp

douglascrp commented 7 years ago

@M-Thirumal Yes, that is a know issue, describe here #12 Could you please change that and send us a pull request?