当前位置:网站首页>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
边栏推荐
- Microsoft Word tutorial, how to insert page numbers and table of contents in word?
- QT knowledge: QT widgets widget class [01]
- Simple understanding of anti shake function
- [untitled]
- EditText control starts from the upper left corner
- [leetcode] small thinking of optimal division
- Low code enables rural construction to open "smart mode"
- The execution results of i+=2 and i++ i++ under synchronized are different
- Alipay payment episode 11: monitoring after successful payment callback
- Test prerequisites: recommend a special cross platform app performance test tool!
猜你喜欢

In 2022, FISCO bcos MVP recognized that the channel was open and invited you to become an open source leader

What is the difference between union and union all

QT pro file configuration ffmpeg macro

How to close icloud when Apple ID of Apple mobile phone forgets password and frequently jumps out to log in

Introduction to the characteristics of building a balancer decentralized exchange market capitalization robot

Zhangqiming, vice director of the United Front Work Department of the CPC Anhui Provincial Committee, led a team to investigate the HoloNet Royal Hefei R & D base

Overview of object detection

Generate API documents using swagger (go language example)

Niuke net: somme des trois nombres

Experience Technology Department of ant group launched the 2023rd school recruitment
随机推荐
House raiding 3
CentOS7安装MySQL5.7操作说明
Go memory escape analysis
[games101] class note 8 - shading (shading frequency, graphics pipeline, texture mapping)
Scalars, vectors, arrays, and matrices
How to make a computer installation and startup USB flash disk
[leetcode 16 solution] the sum of the nearest three numbers
system()
The Milvus graphical management tool Attu is coming!
Centos7 installing PHP
What is a hash index?
Microsoft Word tutorial, how to insert a header or footer in word?
Wechat applet notes
QT pro文件配置ffmpeg宏
Introduction to system mode development of rouya wechat mall
MySQL log
Blue Bridge Cup basic-15 VIP question string comparison
Installation of xv6 system
Is foreign exchange speculation formal and is the fund safe?
登錄mysql