./goosefsx-cli
2023/02/16 19:55:44 Welcome to goosefsx-cli!When you use goosefsx-cli for the first time, you need to input some necessary information to generate the default configuration file of goosefsx-cli.The path of the configuration file: /root/.goosefsx.yamlInput Your Secret ID:xxxInput Your Secret Key:yyyInput Your Session Token:test-token123
/root/.goosefsx.yaml# cat /root/.goosefsx.yamlgoosefsx:base:secretid: xxxsecretkey: yyysessiontoken: test-token123scheme: httpsendpoint: goosefs.internal.tencentcloudapi.com
./goosefsx-cli cos ls [flags]
Flag Name | Flag Abbreviation | Description |
No | No | List files and directories in the specified directory, without recursively listing files and subdirectories in subdirectories |
No | -r | Carry the -r parameter to recursively list directories; recursively list files and subdirectories in subdirectories under the specified directory. |
--limit | No | Carry the --limit parameter to specify the number of files and directories to list; for example, --limit 2, list the first 2 files or directories in lexicographical order. |
--include | No | Carry the --include parameter to set the included regular filter criteria; for example, --include dir, list files and subdirectories starting with dir. |
--exclude | No | Carry the --exclude parameter to set the excluded regular filter criteria; for example, --exclude dir, list files and subdirectories not starting with dir. |
No | > | Import the file list to the specified file; otherwise, directly output the file list. |
Overlay Superimpose Stack Accumulate Overlaid | Overlay Superimpose Stack Accumulate Overlaid | Carry multiple parameters simultaneously, achieve an overlay effect. For example, `-r --limit 10 --include dir > list` implements recursive listing of files and subdirectories in subdirectories, lists the first 10 files or directories, lists files and subdirectories starting with `dir`, and outputs to the file `list`. |
./goosefsx-cli cos ls --bucket-name goosefs-ofs-test1-xxx dir/ --bucket-region ap-beijing
[root@VM-10-214-tencentos ~]# ./goosefsx-cli cos ls --bucket-name goosefs-ofs-test1-xxx dir/ --bucket-region ap-beijingdir/_sssdir/dir2/
./goosefsx-cli cos ls --bucket-name goosefs-ofs-test1-xxx dir/ --bucket-region ap-beijing -r > list
[root@VM-10-214-tencentos ~]# ./goosefsx-cli cos ls --bucket-name goosefs-ofs-test1-xxx dir/ --bucket-region ap-beijing -r > list[root@VM-10-214-tencentos ~]# cat listdir/_sssdir/dir2/dir/dir2/_sss (4)
./goosefsx-cli data_flow create [flags]
Flag Name | Flag Abbreviation | Description |
--task-type | No | Data flow task type, FS_TO_COS (file system to COS Bucket) or COS_TO_FS (COS Bucket to file system) |
--bucket | No | COS bucket name |
--region | No | The region where the file system is located. |
--filesystem-id | No | The file system ID. |
--task-path | No | For FS_TO_COS tasks, --task-path is the relative path of the mapped directory in the Bucket. For COS_TO_FS tasks, --task-path is the path on COS. If left empty, it means all data. Example If you associate the COS bucket beijing-1250000000 with the GooseFSx directory beijing-1250000000 and configure --task-path=test/ and --task-path=level2/level3/, it respectively represents the test/ and level2/level3/ paths under the COS bucket beijing-1250000000, or the test/ and level2/level3/ directories under the GooseFSx directory beijing-1250000000. Among them, level3/ is a subdirectory of level2/.Note: --task-path parameter value ends with /. |
--task-name | No | Task Name |
Parameter Name | Type | Description |
Task ID | string | Task ID |
Task Request ID | string | unique request ID, which is returned for each request. RequestId is required for locating a problem. |
./goosefsx-cli data_flow create --task-type=COS_TO_FS --bucket=bucket_test-1252246555 --region=ap-shanghai --filesystem-id=xxx --task-path=test/ --task-name=test
Create data repository task successfully!=======================Task ID: x_task_1676551831746Task Request ID: f90a8741-f59b-465c-b44c-4758e7ed68a0
./goosefsx-cli data_flow taskstatus [flags]
Flag Name | Flag Abbreviation | Description |
--region | No | The region where the file system is located. |
--task-id | No | Task ID |
--filesystem-id | No | The file system ID. |
Parameter Name | Type | Description |
Query data flow task ID | string | Task ID |
Query data flow task status | string | Retrieve the status of data flow tasks, including the numbers 0 (initialization), 2 (completed), and 3 (task failure). |
Query data flow task Request ID | string | unique request ID, which is returned for each request. RequestId is required for locating a problem. |
./goosefsx-cli data_flow taskstatus --region=ap-shanghai --task-id=xxx --filesystem-id=xxx
Query data flow task successfully!=======================Query data flow task ID: x_task_1676551831746Query data flow task Request ID: fad14898-b975-423e-9588-7c5be84ad4e9Query data flow task status: Data flow task status is 2, finished
./goosefsx-cli data_flow createAndWaitFinish [flags]
Flag Name | Flag Abbreviation | Description |
--task-type | No | Data flow task type, FS_TO_COS (file system to COS Bucket) or COS_TO_FS (COS Bucket to file system) |
--bucket | No | COS bucket name |
--region | No | The region where the file system is located. |
--filesystem-id | No | The file system ID. |
--task-path | No | For FS_TO_COS, TaskPath is the relative path of the mapped directory in the Bucket. For COS_TO_FS, it is the path on COS. If left empty, it means all data. |
--task-name | No | Task Name |
Parameter Name | Type | Description |
Task ID | string | Create data flow task ID |
Task Request ID | string | Create data flow task unique request ID, which is returned for each request. RequestId is required for locating a problem. |
Query data flow task ID | string | Retrieve data flow task ID |
Query data flow task Request ID | string | Retrieve data flow task unique request ID, which is returned for each request. RequestId is required for locating a problem. |
Query data flow task status | string | Retrieve the status of data flow tasks, including the numbers 0 (initialization), 2 (completed), and 3 (task failure). |
./goosefsx-cli data_flow createAndWaitFinish --task-type=COS_TO_FS --bucket=bucket_test-xxxx --region=ap-shanghai --filesystem-id=xxx --task-path=test/ --task-name=test
Create data repository task successfully!=======================Task ID: x_task_1676553288519Task Request ID: 2902f31e-4bfc-4709-828f-999072c92478Query data flow task successfully!=======================Query data flow task ID: x_task_1676553288519Query data flow task Request ID: ee9d0646-9c9b-4589-b661-f492631147afQuery data flow task status: Data flow task status is 2, completed
./goosefsx-cli cos ls [flags]

./goosefsx-cli data_flow create [flags]


Feedback