Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #264

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Original file line number Diff line number Diff line change
@@ -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
```
Original file line number Diff line number Diff line change
@@ -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
```
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Original file line number Diff line number Diff line change
Expand Up @@ -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.

## 呼叫帮助!

Expand Down