You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
i need a api to clone repositories and copy to aws s3 bucket which can maintain the backup.
@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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.