一些minio命令
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
1.下载
GNU/Linux
Binary Download
部署参考minio
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
./mc --help
./mc config host add <ALIAS> <YOUR-MINIO-ENDPOINT> [YOUR-ACCESS-KEY] [YOUR-SECRET-KEY]
./mc config host add minio1 http://ip AKIAIOSFODNN7EXAMPLE wJalrXUtnFEMIK7MDENGbPxRfiCYEXAMPLEKEY
更新【可选】
mc update
指定配置文件目录【不建议使用】
–config-dir
结果:
mc: Configuration written to `/root/.mc/config.json`. Please update your access credentials.
mc: Successfully created `/root/.mc/share`.
mc: Initialized share uploads `/root/.mc/share/uploads.json` file.
mc: Initialized share downloads `/root/.mc/share/downloads.json` file.
Added `minio1` successfull
https://docs.min.io/docs/minio-client-complete-guide.html
一些命令
./mc ls minio1/
./mc ls minio1/bucket
./mc tree --depth 2 -f minio1
./mc --json ls minio1
直接查询s3上数据库导出的文件
S3Object为固定写法
./mc sql --query "select * from S3Object" minio1/testbucket/04-15.csv
#查询前n行
./mc head -n 1 minio1/dawson/cem_authorize_dos_menu_2020-04-15.csv
Pipe
Example: Stream MySQL database dump to Amazon S3 directly.
mysqldump -u root -p ******* accountsdb | mc pipe s3/sql-backups/backups/accountsdb-oct-9-2015.sql
下载限制
[root@node1 mc]# ./mc share download -h
NAME:
mc share download - generate URLs for download access
USAGE:
mc share download [FLAGS] TARGET [TARGET...]
FLAGS:
--recursive, -r share all objects recursively
--expire value, -E value set expiry in NN[h|m|s] (default: "168h")
--config-dir value, -C value path to configuration folder (default: "/root/.mc")
--quiet, -q disable progress bar display
--no-color disable color theme
--json enable JSON formatted output
--debug enable debug output
--insecure disable SSL certificate verification
--help, -h show help
EXAMPLES:
1. Share this object with 7 days default expiry.
$ mc share download s3/backup/2006-Mar-1/backup.tar.gz
2. Share this object with 10 minutes expiry.
$ mc share download --expire=10m s3/backup/2006-Mar-1/backup.tar.gz
3. Share all objects under this folder with 5 days expiry.
$ mc share download --expire=120h s3/backup/2006-Mar-1/
4. Share all objects under this bucket and all its folders and sub-folders with 5 days expiry.
$ mc share download --recursive --expire=120h s3/backup/
监听bucket
./mc watch minio1/testbucket
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献1条内容
所有评论(0)