Important Update: Cohesity Products Documentation
All Cohesity product documentation are now managed via the Cohesity Docs Portal: https://docs.cohesity.com/HomePage/Content/home.htm. Some documentation available here may not reflect the latest information or may no longer be accessible.
Enterprise Vault™ 备份和恢复
为所在环境生成 PowerShell 备份命令
Enterprise Vault 包括一个名为 Transform-Backup.ps1 的 PowerShell 脚本,可用来为所在环境生成 PowerShell 备份模式命令。
Transform-Backup.ps1 将为所在环境中的下列每个实体生成一个 HTML 文件,该文件包含设置备份模式命令和清除备份模式命令:
Enterprise Vault 站点(所有保管库存储)
保管库存储组
保管库存储
Enterprise Vault 站点(所有索引位置)
您可以从 HTML 文件中使用适合您的备份机制的任意命令。
例如,如果要一次性备份与整个 Enterprise Vault 站点关联的所有数据,预备份脚本应包括在站点的保管库存储上设置备份模式的命令和在站点的索引位置上设置备份模式的命令。
备份操作完成后,备份后脚本应包括从站点的保管库存储清除备份模式的命令和从站点的索引位置清除备份模式的命令。
Transform-Backup.ps1 位于 Enterprise Vault 安装文件夹下的 Templates 文件夹中(例如 C:\Program Files (x86)\Enterprise Vault\Reports\Templates)。
在运行脚本之前,必须设置 PowerShell 脚本执行策略,以仅允许签名脚本运行。此操作只需执行一次。
设置 PowerShell 脚本执行策略
- 启动 Enterprise Vault Management Shell。
- 运行下列命令:
Set-ExecutionPolicy -executionPolicy AllSigned
设置 PowerShell 脚本执行策略之后,可以运行 Transform-Backup.ps1 为所在环境生成备份模式命令。
运行脚本
- 启动 Enterprise Vault Management Shell。
- 将目录转至 Enterprise Vault 安装文件夹下的
Reports\Templates文件夹。 - 输入以下命令以运行脚本:
.\Transform-Backup.ps1
- 出现以下提示时:
Do you want to run software from this untrusted publisher?
选择 R 运行脚本一次。
在脚本结束时,Transform-Backup.ps1 生成的 HTML 文件将在您的默认 Web 浏览器中自动打开。