Forums

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

Repository backup

Antonio Halužan August 30, 2018

Hello,

First, I am sorry if my question title is too much abstract, but I didn't had any idea how else to name the title.

Second, is there any software/plugin that is able to track any changes on repository on Bitbucket Server and copy that change to Bitbucket Cloud?

For example, I have home server with RAID 1, but if something goes wrong, I would like to be able to have the replica of the repository on Bitbucket Cloud so I won't lose my source code.

Is there anything that handles that?

Thanks.

1 answer

0 votes
Jamie Rogers
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.
August 30, 2018

Curious - Would you not just treat the version in Bitbucket cloud the master and just commit to that from your home machine?

I am not sure of a solution to "sync" between two instances of Bitbucket (cloud/server) other than setting up a local smart mirror but a datacenter license is needed for that feature.

Antonio Halužan August 30, 2018

I don't think I am following you with that idea on "Curious".

Jamie Rogers
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.
August 30, 2018

What I meant was that with git you clone a copy of the repo to your local machine and commit changes to your source code there, and then push these back to Bitbucket branch.

If this Bitbucket instance is hosted in the cloud then that would negate the need to commit to your local server instance since its always available in the cloud instance. If the cloud is unavailable then you have the local copy on your machine to continue working on. If your local machine dies then you code is already saved in the cloud.

Unless I'm mis-understanding your intentions then I don't think there is any other way to do this except to manually clone the repo back to the cloud every time you make a change. Perhaps you could use some cloud based storage solution (like DropBox, Google Drive) and have that sync the contents of your local repositories (or entire Bitbucket instance) to the cloud.

Antonio Halužan August 30, 2018

That is actually a great idea. But is there a way to automate it?
Like for example some bash script that could recognize if I made push to some branch to automatically c/p that code + commit and push to cloned repo from cloud? I am asking this cause I like to use for example Gitkraken to work with git.

Jamie Rogers
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.
August 30, 2018

Sorry I am not too sure when it comes automating these things. I do this now manually for some teams in my company when copying repo's from project to project.

Antonio Halužan August 30, 2018

I get what you meant with that idea and tnx for it.
I will have to figure something out with automating that idea.ž

Tnx again.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events