diff --git a/_config.yml b/_config.yml new file mode 100644 index 00000000..c4192631 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-cayman \ No newline at end of file diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/cat.md b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/cat.md index 98da25e2..b231756e 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/cat.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/cat.md @@ -31,3 +31,14 @@ byctl cat example:testCat | byctl tee another:testCat Executing the above command will upload the contents of the file `testCat` in service `example` to the file `testCat` in service `another`. +## 限制并发数量 + +BeyondCTL support concurrency cat be default. 我们可以通过 `--workers` 控制并行数量。 + +默认情况下,我们将有 `4` 工作者。 + +我们可以将工人人数增加到 `10`: + +```shell +byctl cat --workers=10 example:testCat +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/mv.md b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/mv.md new file mode 100644 index 00000000..496a123d --- /dev/null +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/mv.md @@ -0,0 +1,68 @@ +# mv + +BeyondCTL support move file from source storager to target storager. + +``` +NAME: + byctl mv - move file from source storager to target storager + +USAGE: + byctl mv [command options] [source] [target] + +OPTIONS: + --config FILE, -c FILE Load config from FILE (default: "/root/.config/byctl/config.toml") [$BEYOND_CTL_CONFIG] + --workers value Specify the workers number (default: 4) [$BEYOND_CTL_WORKERS] + --read-speed-limit value Specify speed limit for read I/O operations, for example, 1MB, 10mb, 3GiB. [$BEYOND_CTL_READ_SPEED_LIMIT] + --write-speed-limit value Specify speed limit for write I/O operations, for example, 1MB, 10mb, 3GiB. [$BEYOND_CTL_WRITE_SPEED_LIMIT] + --multipart-threshold value Specify multipart threshold. If source file size is larger than this value, byctl will use multipart method to move file. (default: "1GiB") [$BEYOND_CTL_MULTIPART_THRESHOLD] + --recursive, -r, -R move directories recursively (default: false) + --help, -h show help (default: false) +``` + +例如: + +``` +byctl mv test.mp4 example:/test.mp4 +``` + +## Move directory + +We can specify the move directory with `--recursive`, `-r` or `-R`. + +``` +byctl mv -r testDir example:/testDir +``` + +## 通过分段上传加速复制 + +BeyondCTL supports speed up the move procedure via [Multipart](/docs/go-storage/operations/multiparter/index). + +By default, BeyondCTL will switch to `multipart` method while the source file is larger than 1 GiB. We can specify the threshold by `--multipart-threshold`: 我们可以通过 `--multipart-directly` 指定阈值: + +例如, 我们可以将阈值降低为 `100MB` 以强制 beyondctl 为大于 `100MB` 的文件使用分段上传。 + +```shell +byctl mv --multipart-threshold=100MiB test.mp4 example:/test.mp4 +``` + +## 速度限制 + +有时,我们不想要 beyondctl 使用太多资源。 我们可以通过 `--read-speedlimit` 或 `--rardspeedlimit` 来限制读取或写入速度。 + +例如,我们可以将全局读取速度限制为 1 MiB。 + +```shell +byctl mv --read-speed-limit=1MiB test.mp4 example:/test.mp4 +``` + +## 限制并发数量 + +BeyondCTL support concurrency mv be default. 我们可以通过 `--workers` 控制并行数量。 + +默认情况下,我们将有 `4` 工作者。 + +我们可以将工人人数增加到 `10`: + +```shell +byctl mv --workers=10 test.mp4 example:/test.mp4 +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/sign.md b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/sign.md new file mode 100644 index 00000000..7fe3bf7b --- /dev/null +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/sign.md @@ -0,0 +1,45 @@ +# sign + +BeyondCTL support get the signed URL by the source object. + +``` +NAME: + byctl sign - get the signed URL by the source + +USAGE: + byctl sign [command options] [source] + +OPTIONS: + --config FILE, -c FILE Load config from FILE (default: "/root/.config/byctl/config.toml") [$BEYOND_CTL_CONFIG] + --workers value Specify the workers number (default: 4) [$BEYOND_CTL_WORKERS] + --expire value the number of seconds until the signed URL expires (default: 300) + --help, -h show help (default: false) +``` + +例如: + +``` +byctl sign example:/test.mp4 +``` + +## Sign with expire + +By default, the created `URL` expires in `300` seconds. If we want to specify the expire time, we can use flag `--expire`. + +``` +byctl sign --expire=150 example:/test.mp4 +``` + +This command changes the expire time to 150 seconds. + +## 限制并发数量 + +BeyondCTL support concurrency sign be default. 我们可以通过 `--workers` 控制并行数量。 + +默认情况下,我们将有 `4` 工作者。 + +我们可以将工人人数增加到 `10`: + +```shell +byctl sign --workers=10 example:/test.mp4 +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/tee.md b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/tee.md index 128c4cac..24546e7c 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/tee.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/tee.md @@ -46,3 +46,14 @@ If we know the exact size of the file, we can set `-expected-size` to accurately cat exampleTee | byctl tee --expected-size=2MiB example:testTee ``` +## 限制并发数量 + +BeyondCTL support concurrency tee be default. 我们可以通过 `--workers` 控制并行数量。 + +默认情况下,我们将有 `4` 工作者。 + +我们可以将工人人数增加到 `10`: + +```shell +byctl tee --workers=10 example:testTee +``` diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/index.md b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/index.md index 91011e8f..3a6a67b4 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/index.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/index.md @@ -23,6 +23,8 @@ byctl cp test.mp4 example:/test.mp4 - [tee](./commands/tee.md): Pipe data from stdin into storage services. - [cat](./commands/cat.md): Pipe data from storage services into stdout. - [ls](./commands/ls.md): List dirs and files from storage services. +- [sign](./commands/sign.md): Get the signed URL by the source object. +- [mv](./commands/mv.md): Move file from source storager to target storager. ## 呼叫帮助!