MinIO: Difference between revisions

From Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:


  {
  {
   "url":"http://10.1.1.1:9001/api/v1/service-account-credentials",
   "url":"<nowiki>http://10.1.1.1:9001/api/v1/service-account-credentials</nowiki>",
   "accessKey":"VQ...A",
   "accessKey":"VQ...A",
   "secretKey":"K4...e",
   "secretKey":"K4...e",
Line 21: Line 21:
3) Install aws client
3) Install aws client


4) run command  
4) run command below to configure connection


  aws configure
  aws configure
Line 29: Line 29:
5) Copy file from bucket to local machine
5) Copy file from bucket to local machine


  aws s3 cp s3://mysfg-bucket-minio/ . --recursive --endpoint-url http://9.30.42.75:9000
  aws s3 cp s3://mysfg-bucket-minio/ . --recursive --endpoint-url <nowiki>http://10.1.1.1:9001</nowiki>


6) Copy file from local machine to bucket
6) Copy file from local machine to bucket


  aws s3  cp arquivo_teste2.txt s3://mysfg-bucket-minio/  --endpoint-url http://9.30.42.75:9000
  aws s3  cp arquivo_teste2.txt s3://mysfg-bucket-minio/  --endpoint-url <nowiki>http://10.1.1.1:9001</nowiki>




Line 39: Line 39:
= Ver também =
= Ver também =


* [[Rust| Artigos sobre Rust]]
* [[MinIO| Artigos sobre MinIO]]


[[Category: MinIO]]
[[Category: MinIO]]
[[Category: S3]]
[[Category: S3]]

Latest revision as of 21:47, 25 February 2024


Testing

1) Create a bucket. Sample: mysfg-bucket-minio

2) Access the MinIO console and create a access token.

The file is something like this:

{
  "url":"http://10.1.1.1:9001/api/v1/service-account-credentials",
  "accessKey":"VQ...A",
  "secretKey":"K4...e",
  "api":"s3v4",
  "path":"auto"
}

3) Install aws client

4) run command below to configure connection

aws configure

and informe accessKey and secretKey.

5) Copy file from bucket to local machine

aws s3 cp s3://mysfg-bucket-minio/ . --recursive --endpoint-url http://10.1.1.1:9001 

6) Copy file from local machine to bucket

aws s3  cp arquivo_teste2.txt s3://mysfg-bucket-minio/   --endpoint-url http://10.1.1.1:9001 


Ver também