The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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

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

Regards, Igor

0 votes
Aron Gombas _Midori_
Community Champion
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.

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events