Hi,
I have hosted bitbucket datacenter on my own Azure linux server and performed the steps for DIY backup as suggested in https://confluence.atlassian.com/bitbucketserver/bitbucket-diy-backup-776640056.html
I am using potgresql as my database and my url is configured to use https version, took reference of bitbucket.diy-bacckup.vars.sh.example file.
Configured the script as suggested in articles for using DIY with postgresql and rsync but after executing the script is automatically exits without giving any output display or errors for the same.
Would we be helpful if anyone knows about this issues or am i missing any config settings for the same in script?
Suggestions are most welcome.
Note: All the directories mentioned in the script have been created at specified path locations and necessary file permissions are also given to the script file
My Script:
INSTANCE_NAME=bitbucket
BITBUCKET_URL=https://aa1.example.com #sampleUrl
BITBUCKET_HOME=/var/atlassian/application-data/bitbucket/
BITBUCKET_UID=atlbitbucket
BITBUCKET_GID=atlbitbucket
BACKUP_DISK_TYPE=rsync
BACKUP_DATABASE_TYPE=postgresql
BACKUP_ARCHIVE_TYPE=tar
# The admin user and password for the Bitbucket instance
BITBUCKET_BACKUP_USER=admin
BITBUCKET_BACKUP_PASS=admin
BITBUCKET_BACKUP_EXCLUDE_REPOS=()
# PostgreSQL configuration
BITBUCKET_DB=bitbucket
POSTGRES_HOST=localhost
POSTGRES_USERNAME=bitbucket
export PGPASSWORD=bitbucket
POSTGRES_PORT=5432
# Make use of PostgreSQL 9.3+ options if available
psql_version="$(psql --version | awk '{print $3}')"
psql_majorminor="$(printf "%d%03d" $(echo "${psql_version}" | tr "." "\n" | sed 2q))"
if [[ ${psql_majorminor} -ge 9003 ]]; then
PG_PARALLEL="-j 5"
PG_SNAPSHOT_OPT="--no-synchronized-snapshots"
fi
# The path to working folder for the backup
BITBUCKET_BACKUP_ROOT=/media/backup-root
BITBUCKET_BACKUP_DB=${BITBUCKET_BACKUP_ROOT}/bitbucket-db/
BITBUCKET_BACKUP_HOME=${BITBUCKET_BACKUP_ROOT}/bitbucket-home/
# The path to where the backup archives are stored
BITBUCKET_BACKUP_ARCHIVE_ROOT=/media/backup-archive
CURL_OPTIONS="-v -L -s -f"
BITBUCKET_VERBOSE_BACKUP=true