You need to enable JavaScript to run this app.
文档中心
文档控制台
注册
对象存储

对象存储

复制全文
下载 pdf
TOS Import(即将废弃)
常用命令
复制全文
下载 pdf
常用命令

本文介绍使用 TOS Import 工具的常用命令。

注意

部署迁移环境后,您可以在迁移工具可执行文件 tos-import 所在目录下执行 ./tos-import 命令管理任务。如果您在其他路径上执行,您需要指定迁移文件可执行文件的绝对路径。
例如 TOS Import 解压在 /root/test 目录下,您可以在 /root/test/tos-import 目录下使用 ./tos-import create --conf task/task-s3.template.yaml 命令创建迁移任务。但是如果您要在 /root/test 目录下创建迁移任务,则命令应该为/root/test/tos-import/tos-import create --conf /root/test/tos-import/task/task-s3.template.yaml --workdir /root/test/tos-import

命令说明
./tos-import查看工具版本号和工具常用命令。
./tos-import _run运行常驻进程 tos-import。该进程主要负责监听命令与 worker 节点的任务分发、进度上报等。
./tos-import deploy通过配置 server.yaml 部署迁移环境,同步子节点。
./tos-import redeploy通过 server.yaml 修改迁移环境的配置,然后应用于迁移环境,同步子节点。
./tos-import terminate停止并保存所有正在迁移的任务,常驻进程退出。
./tos-import create --conf task/<任务文件名称>通过配置 task-local.template.yaml 创建一项迁移任务,并进行数据分发和迁移。
./tos-import list展示迁移任务的迁移 ID、进度、状态等信息。
./tos-import stop --id <任务ID>停止并保存指定的迁移任务。
./tos-import resume --id <任务ID>恢复暂停的迁移任务。

./tos-import delete --id <任务ID> --name <任务名称>

删除迁移任务,并不会删除迁移报表与结果,可以删除任务对应的中间文件,避免不停的生成中间文件,帮助清理磁盘。

./tos-import retry --id <任务ID>创建一个新任务,重试任务中失败对象。
最近更新时间:2023.08.14 18:05:40
这个页面对您有帮助吗?
有用
有用
无用
无用