issue restoring bitbucket from backup utility client

Utkarsh Singh March 5, 2018

i am restoring the backup into a directory on a server say X, while i have backed up the bitbucket on the different server on which the bitbucket server instance is running and i am restoring backup into a newly created DB, so,

where do i need to install client do i need to install client on the server on which the backup was created(my backup file is on another server i.e. tar file ) or on the server X on which i am restoring?.

As my bitbucket.tar file is on another server so while restoring into the directory which is on the server X do i firstly need to map the directory so that the client can find and access the tar file?

 As mention in the Documents for the backup and restoring bitbucket, we need to Unzip the client into a directory on the server where your Bitbucket Server instance resides so now where do i need to install the client on server X if required as asked in first question. 

for backup

bitbucket.home=D:/ApplicationData/STASH

bitbucket.user=admin

bitbucket.password=XYZ

bitbucket.baseUrl=http://W.X.Y.Z:7990/bitbucket

backup.home=D:/bkup

 

command i am executing for restoring on the same server on which backup file is stored i.e. tar file

java -Djdbc.override=true

-Djdbc.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

-Djdbc.url=sqlserver://LMNOPQRST:1433;databaseName=backup_bitbucket;

-Djdbc.user=stashadmin

-Djdbc.password=stashadmin

-Dbitbucket.home="\\A.B.C.D\\Bit_Bucket"

-jar bitbucket-restore-client.jar D:\\bkup\\backups\\bitbucket-33945619-018695-183.tar

error i am getting

java.io.FileNotFoundException: \\A.B.C.D\Bit_Bucket\shared\bitbucket.properties (Access is denied)

 

1 answer

1 accepted

0 votes
Answer accepted
Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2018

Been a while since I have used this, but it helps to have a base server installation done first. Then restore into an empty home directory, repoint the server to use that new home once the restore is complete and you should be up and running.

Utkarsh Singh March 7, 2018

ok.. this is helpful....but now i have resolved the error also...i was getting the above error because client was not able to write in bitbucket.properties, because the user from which i was logging in on network A.B.C.D\Bit_Bucket doesn't had read write permission on file bitbucket.properties so i had manually given the user the permission by right clicking on the file and selection properties, and using security tab, then client was able to write the data in  the bitbucket.properties file while restoring...and the restoration is now done successfully

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events