当前位置:网站首页>MinIO客户端(mc命令)实现数据迁移
MinIO客户端(mc命令)实现数据迁移
2022-06-12 20:21:00 【lihongbao80】
一.概述
通过minio提供的客户端实现资源迁移,本文章的mc通过docker创建。
minio1的api地址是172.20.10.2:9000
minio2的api地址是172.20.10.2:9002
二.docker启动mc实例,并进入容器内部
docker run -it --entrypoint=/bin/sh minio/mc
三.通过mc命令连接两个minio服务
mc alias set minio1 http://172.20.10.2:9000 adminminio adminminio
mc alias set 名称 服务地址 用户名 密码
四.迁移数据
#全量迁移,重名文件不覆盖,bucket不存在会自动创建
mc mirror minio1 minio2
#只是迁移某个bucket,以test为例,目标的bucket需要提前建好
mc mirror minio1/test minio2/test
#覆盖重名文件,加--overwrite
mc mirror --overwrite minio1/test minio2/test
边栏推荐
- 1. Getting to know R
- 7 R read / write data
- Deploy etcd cluster in static pod mode
- 新来的同事问我 where 1=1 是什么意思???
- When will the index fail
- A Zhu and Xu Baobao's high-rise game - difference
- [generation confrontation network learning III] reading notes of Bigan paper and its principle understanding
- 4 R basic exercises
- Explain
- Operating instructions for installing mysql5.7 in centos7
猜你喜欢

A Zhu and Xu Baobao's high-rise game - difference

Viewpoint sharing | Li Wei, an expert of Gewu titanium intelligent technology products: underlying logic and scenario practice of unstructured data platform

QT pro文件配置ffmpeg宏

牛客網:三數之和

EditText control starts from the upper left corner

How mysterious is "PIP not an internal or external command, nor a runnable program or batch file"

2022年,中国大学生最多的20个城市

2022年最新宁夏建筑安全员模拟题库及答案

阿里前辈给我推荐的软件测试人员必读书籍(附电子书),让我受益匪浅...

What is the difference between union and union all
随机推荐
2022年,中国大学生最多的20个城市
设计规则检查约束(set_max_transition、set_max_capacitance)
Maximize tensorflow* CPU performance (shell)
7 R read / write data
What is the difference between union and union all
Implementation of exec function and shell
Wechat jsapi payment pit summary
Deep feature synthesis and genetic feature generation, comparison of two automatic feature generation strategies
Why my order by create_ Time ASC becomes order by ASC
Lightroom Ambassador series: capturing nostalgia with MEG loeks
What does MySQL full value match mean
Are you confused about choosing a low code platform? Follow these three steps
MySQL log
How mysterious is "PIP not an internal or external command, nor a runnable program or batch file"
Introduction to system mode development of rouya wechat mall
Handwritten promise
P5076 【深基16.例7】普通二叉樹(簡化版)
How do indexes match?
sklearn中随机森林RandomForestClassifier的参数含义
User and group permissions