Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Does a backup made with client contain repositories?

Andrea Rota
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 20, 2018

Hello, we started backing up our on premises Bitbucket 4.14.4 installation with the client strategy (https://confluence.atlassian.com/bitbucketserver/data-recovery-and-backups-776640050.html#Datarecoveryandbackups-Bitbucketbackupstrategies).

We tried to restore it on a cold server: we see the projects, but there is no code associated.

Is it correct? Are missing some steps?

1 answer

0 votes
Tomasz Tokarczuk
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2018

Hi Andrea!

Bitbucket Backup Client definitely backs up repositories data as well.

It seems like your Bitbucket has some issues with reading the contents of your Bitbucket home directory.

There might be a few reasons for that:

1. you've restored the backup with a different user than your Bitbucket default user, and it's a permission issue

2. you haven't restored it to the same home directory as before

Ad 1. Please go to your $BITBUCKET_HOME/shared/data/repositories directory and check if there are any directories present. It should contain numbered folders. These are your repositories. If it is NOT empty, please check the permissions on the directories and change them to the user running Bitbucket Server 

Ad 2. If the $BITBUCKET_HOME/shared/data/repositories is empty that means you might have restored it to some different folder. The best option, in that case, might be to simply remove all the contents of $BITBUCKET_HOME and restore it again.

However, before any action is taken, please confirm in the backup log what has been backed-up. 

Please let us know if you were able to recover your code!

 

Best regards,
Tomasz Tokarczuk
Atlassian Support

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events