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.