Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor removeBucketReplication api to ts #1185

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

prakashsvmx
Copy link
Member

"refactor removeBucketReplication api to ts"

Try to remove the bucket replication

try {
  await s3Client.removeBucketReplication('source-bucket')
  console.log('Success')
} catch (e) {
  return console.log(e)
}
Steps to setting up a bucket replication
# Setup Bucket replication e.g b/w 2 sites
Site 1 (local22)
---------
CI=true  MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /tmp/sem{1...4}  --address ":22000" --console-address ":9025"

Site 2(local23)
---------------------------
CI=true  MINIO_ROOT_USER=minio MINIO_ROOT_PASSWORD=minio123 minio server /tmp/semc{1...4}  --address ":23000" --console-address ":9035"

mc mb local22/source-bucket
mc mb local23/dest-bucket
mc version enable local22/source-bucket
mc version enable local23/dest-bucket

mc replicate add local22/source-bucket --remote-bucket http://minio:minio123@localhost:23000/dest-bucket --priority 1 

echo "Numeric" | mc pipe local22/source-bucket
mc ls -r local22/source-bucket
mc ls -r local23/dest-bucket

mc replicate ls local22/source-bucket

@prakashsvmx prakashsvmx self-assigned this Jul 13, 2023
@prakashsvmx prakashsvmx changed the title "refactor removeBucketReplication api to ts" refactor removeBucketReplication api to ts Jul 13, 2023
docs/API.md Outdated Show resolved Hide resolved
docs/API.md Outdated Show resolved Hide resolved
Copy link
Contributor

@kaankabalak kaankabalak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trim21
Copy link
Contributor

trim21 commented Jul 14, 2023

lgtm

@trim21
Copy link
Contributor

trim21 commented Jul 17, 2023

merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants