We are running Bitbucket Server 5.6.1 and just introduced using the DIY backup concept. (https://bitbucket.org/atlassianlabs/atlassian-bitbucket-diy-backup)
As part of restoring a backup to our test environment we would like to change the base url.
I'm not able to find a REST resource for doing so and only able to find setup.baseUrl which will work on a "fresh" install. (this isen't as it a restore of a existing one)
Is this possible using the REST API or by setting a property in the bitbucket.properties file ?
Thanks in advance :-)
Using that property doesn't work. I restore our production environment to our test environment once a day - and the BITBUCKET_URL is set correctly in bitbucket.diy-backup.vars.sh when restoring. But the url in Bitbucket test instance is set to the production one.... maybe this is saved in the DB ?
We had this problem, too. Same situation.
As far as we could determine, this must be done in the database.
Before launching your restored instance, you can do:
UPDATE app_property SET prop_value = 'http://new-url-here:7990' WHERE prop_key = 'instance.url'
That's not exactly a supported method, as far as I know, but I couldn't figure out another way to make it happen.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs