在最重要的情况下,需要拆分团队空间,并且需要将某些渠道移至新团队项目。如何移动这些频道?
可以在GUI中设置新的团队空间。移动通道需要通过命令行完成。
列出团队空间以获取正确的名称
./bin/mattermost/ team list
((或使用./bin/mattermost/team create --name bteam --display_name "New B-Team Teamspace"
创建新的团队空间)
列出先前团队空间中的频道以获取正确的名称
# ./bin/mattermost/ channel list [previous team name]
./bin/mattermost/ channel list ateam
请确保将先前团队空间的所有用户添加到新团队空间。否则,移动命令将失败(“无法移动频道错误:无法移动,直到所有用户都成为目标团队的成员”)。没有列出团队空间所有用户的命令,因此需要在GUI中手动完成。
将频道移至新的团队空间
# ./bin/mattermost channel move [new team name] [previous team name]:[channel] --username [username who is moving the channel] --remove-deactivated-users
./bin/mattermost channel move bteam ateam:bestplanever --username hannibal --remove-deactivated-users