From 9ff7892c0c611c913dc31941507ab987df2090da Mon Sep 17 00:00:00 2001 From: BeyondRobot Date: Thu, 11 Nov 2021 18:14:41 +0800 Subject: [PATCH 1/9] New translations index.md (Chinese Simplified) --- .../docusaurus-plugin-content-docs-beyond-ctl/current/index.md | 2 ++ 1 file changed, 2 insertions(+) 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. ## 呼叫帮助! From 8ac7379522b995b14254a6bd4a28af5709ec167c Mon Sep 17 00:00:00 2001 From: BeyondRobot Date: Thu, 11 Nov 2021 18:16:37 +0800 Subject: [PATCH 2/9] New translations cat.md (Chinese Simplified) --- .../current/commands/cat.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +``` From 4d63c4dc042324869be2a202f705a3eb4ec6ce8e Mon Sep 17 00:00:00 2001 From: BeyondRobot Date: Thu, 11 Nov 2021 18:16:38 +0800 Subject: [PATCH 3/9] New translations tee.md (Chinese Simplified) --- .../current/commands/tee.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +``` From c87dc753af747a897feae98e57c8c1bf064e8e48 Mon Sep 17 00:00:00 2001 From: BeyondRobot Date: Thu, 11 Nov 2021 18:16:39 +0800 Subject: [PATCH 4/9] New translations mv.md (Chinese Simplified) --- .../current/commands/mv.md | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/mv.md 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 +``` From 5bd9d4445b9df01e7d0bb1d530f82f44f10cf024 Mon Sep 17 00:00:00 2001 From: BeyondRobot Date: Thu, 11 Nov 2021 18:16:40 +0800 Subject: [PATCH 5/9] New translations sign.md (Chinese Simplified) --- .../current/commands/sign.md | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 i18n/zh-CN/docusaurus-plugin-content-docs-beyond-ctl/current/commands/sign.md 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 +``` From 6c6d1ba5758cfbfb792ed7bb4a5183355d2ecd18 Mon Sep 17 00:00:00 2001 From: MorvenH Date: Fri, 29 Jul 2022 13:46:15 +0800 Subject: [PATCH 6/9] Create CNAME --- CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 CNAME diff --git a/CNAME b/CNAME new file mode 100644 index 00000000..b927c9fd --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +beyondstorage.dev \ No newline at end of file From f809b4e839d35352f583f8dbe9682ca550246262 Mon Sep 17 00:00:00 2001 From: MorvenH Date: Fri, 29 Jul 2022 13:46:41 +0800 Subject: [PATCH 7/9] Delete CNAME --- CNAME | 1 - 1 file changed, 1 deletion(-) delete mode 100644 CNAME diff --git a/CNAME b/CNAME deleted file mode 100644 index b927c9fd..00000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -beyondstorage.dev \ No newline at end of file From 5f7591713e534d4598e46a8dba5be381f1bff1fa Mon Sep 17 00:00:00 2001 From: MorvenH Date: Fri, 29 Jul 2022 13:47:22 +0800 Subject: [PATCH 8/9] Set theme jekyll-theme-cayman --- _config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 _config.yml 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 From adca89cf1744baa4bf81d7b7a1667c3e8bbe88f0 Mon Sep 17 00:00:00 2001 From: MorvenH Date: Fri, 29 Jul 2022 13:48:50 +0800 Subject: [PATCH 9/9] Set theme jekyll-theme-cayman