Skip to content

minio 的 命令行 备份、导出、导入工具

Notifications You must be signed in to change notification settings

HoodyHuo/minio-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MinIO-tool

base on golang

TODO

  • 添加并发处理
  • 优化异常处理机制

功能

  • 备份
  • 还原
  • 删除

备份桶

minIo-tool backup -e endpoint -i accessKeyID -p secretAccessKey -d pathToSave [-b BucketName]

1.桶会按文件目录放置于 pathToSave目录下
2.如果指定桶名称则只会备份指定桶

eg.

minIo-tool backup -e 200.200.201.10:19000 -i minioadmin -p minioadmin -d ./backup

还原桶

minIo-tool restore -e endpoint -i accessKeyID -p secretAccessKey -d pathToRestore [-b BucketName]

1.以pathToRestore目录下的第一层文件夹作为桶名称,创建桶并上传目录下文件
2.如果指定桶名称则只会备份pathToRestore目录下BucketName名称的文件夹

eg.

minIo-tool restore -e 200.200.201.10:19000 -i minioadmin -p minioadmin -d ./backup

删除桶

minIo-tool delete -e endpoint -i accessKeyID -p secretAccessKey -b bucketName

eg.

minIo-tool delete -e 200.200.201.10:19000 -i minioadmin -p minioadmin -b th-bucket

About

minio 的 命令行 备份、导出、导入工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages