Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket DataCenter DIY script not giving expected output

Edited

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,440 views 4 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you