TeamCity:通过命令行备份数据
TeamCity: Backing up data via command line
我想编写一个 PowerShell 脚本来定期自动备份以下内容:
根据 TeamCity 的 9.x 文档,这些是指定备份内容的命令行选项:
我可以使用 -C
("includes build configurations settings") 和 -U
("includes supplementary (plugins') data"),但这会遗漏:服务器设置、项目配置和插件。
我可以简单地 运行 maintainDB.cmd backup
命令而不指定任何其他选项,但这也会备份数据库,这不是我想要的。
如何通过命令行仅备份 1) 服务器设置、2) 项目和构建配置、3) 插件以及 4) 补充数据?
我联系了 TeamCity 支持部门寻求答案并收到了以下回复:
Hello,
Actually, -C option in the command line is the same as "server
settings, projects and builds configurations, plugins" in the UI.
How can I back up only the 1) server settings, 2) project and build
configurations, 3) plugins, as well as 4) supplementary data via the
command line?
-C -U is the combination.
我想编写一个 PowerShell 脚本来定期自动备份以下内容:
根据 TeamCity 的 9.x 文档,这些是指定备份内容的命令行选项:
我可以使用 -C
("includes build configurations settings") 和 -U
("includes supplementary (plugins') data"),但这会遗漏:服务器设置、项目配置和插件。
我可以简单地 运行 maintainDB.cmd backup
命令而不指定任何其他选项,但这也会备份数据库,这不是我想要的。
如何通过命令行仅备份 1) 服务器设置、2) 项目和构建配置、3) 插件以及 4) 补充数据?
我联系了 TeamCity 支持部门寻求答案并收到了以下回复:
Hello,
Actually, -C option in the command line is the same as "server settings, projects and builds configurations, plugins" in the UI.
How can I back up only the 1) server settings, 2) project and build configurations, 3) plugins, as well as 4) supplementary data via the command line?
-C -U is the combination.