Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

Pratik I'm New Here May 17, 2021

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

286 views 2 10
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