Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

i want to clone the all repositories to s3 through api

Shaik Naina
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 1, 2022

i need a api to clone repositories and copy to aws s3 bucket which can maintain the backup.

2 answers

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 4, 2022

@Shaik Naina  hi.

Reference to Bitbucket API repository.


Also if you need to copy repository to s3, we recommend you to use aws-s3-deploy pipe

  - pipe: atlassian/aws-s3-deploy:1.1.0
      AWS_DEFAULT_REGION: 'us-east-1'
      S3_BUCKET: 'my-bucket-name'
      LOCAL_PATH: 'build'

Regards, Igor

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 1, 2022

You don't need an API for cloning a repo. If you have configured SSH, then you can "git clone" any repo any time over SSH from a script. And if you have already cloned one, you "git pull" the updates any time.

Basically, you'd invoke the Git commandline client from a shellscript. It will just work.

Tip: instead of copying these to S3, you could push the repos to a GitHub private repo. The advantage is then the backup is a Git repo with the history. We use this technique with great success.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events