backupdatastore
该实用程序可用于所有 ArcGIS Data Store 类型。
使用此实用程序可在计划的备份时间之间创建完整的数据存储备份。 例如,在升级 ArcGIS Data Store 之前或对数据存储进行大量更改之前,创建各个数据存储的备份。
一次只能针对一种类型的数据存储运行 backupdatastore 实用程序。
下表指出了运行 backupdatastore 实用程序的位置以及该实用程序对各个数据存储类型执行的操作:
|
数据存储类型 |
计算机 |
行为 |
|---|---|---|
|
关系存储 |
可在主关系存储计算机上运行 backupdatastore 实用程序。 |
backupdatastore 实用程序始终创建关系存储的完整备份。 |
|
对象存储 |
可在集群中的任意计算机上运行 backupdatastore 实用程序。 |
backupdatastore 实用程序始终为视频服务数据和托管 3D 图层缓存创建对象存储的完整备份。 要素图层查询缓存不包含在备份文件中。 |
|
时空大数据存储 |
可在集群中的任意计算机上运行 backupdatastore 实用程序。 |
设置备份位置后,首次运行 backupdatastore 实用程序进行时空大数据存储时,系统将创建完整备份。 后续使用 backupdatastore 实用程序创建的备份文件仅包含自初次完整备份以来所做的更改。 |
|
图存储 |
可在图存储中的任意一台计算机上运行 backupdatastore 实用程序。 |
backupdatastore 实用程序始终创建图存储的完整备份。 |
运行 backupdatastore 实用程序之前,请确保数据存储的备份位置有足够的空间来容纳备份。 要更改数据存储备份位置,请使用 configurebackuplocation 实用程序。
有关 ArcGIS Data Store 备份的详细信息,请参阅管理 ArcGIS Data Store 备份。
语法
backupdatastore [<backup file name>] [--store {relational | spatiotemporal | graph | object}] [--location <backup_arguments>] [--prompt {yes | no}]
必须为备份文件提供名称。
如果未指定 --store 选项,则会假定 relational 值。
如果未指定 --location 选项,则备份文件会写入数据存储的默认备份位置。
要改为指定另一个已注册的备份位置,请使用 --location 选项。 可以提供备份名称或备份类型及位置。 使用 type= 和 location= 参数时,请使用分号进行分隔 (;)。
--location 选项支持的参数如下所示:
|
参数 |
描述 |
|---|---|
|
|
可以使用备份位置名称来指示注册的备份位置。 如果指定了一个名称,则无需使用 |
|
|
如果没有指定备份位置名称,则必须指定备份位置类型和物理位置。 类型值及其描述如下所示:
|
|
|
使用 如需共享文件,请提供文件路径。 如存储在 S3 存储桶,请提供存储桶名称。 如存储在 Azure Blob 存储容器,请提供容器名称。 |
示例
在此示例中,backupdatastore 实用程序会在关系存储的默认备份位置创建一个名为 project1bu 的完整备份文件。 添加 --prompt no 后,实用程序不会发出提示来请求确认。
./backupdatastore.sh project1bu --prompt no
backupdatastore project1bu --prompt no
在此示例中,在文件共享位置为时空大数据存储创建了名称为 localbu5 的备份文件,在配置备份位置时您已将该共享位置命名为 gadbu。
./backupdatastore.sh localbu5 --store spatiotemporal --location 'name=gadbu'
You are going to back up the data store. This could take some time, depending on the size of your data store.
Please do not interrupt the process once it has started.
Do you want to continue (Yes or No)?Yes
backupdatastore localbu5 --store spatiotemporal --location name=gadbu
You are going to back up the data store. This could take some time, depending on the size of your data store.
Please do not interrupt the process once it has started.
Do you want to continue (Yes or No)?Yes
在此示例中,在名为 blob4backups 的 Azure Blob 存储容器中创建了时空大数据存储的备份,所创建备份文件的名称为 spds311016:
./backupdatastore.sh spds311016 --store spatiotemporal --location 'type=azure;location=blob4backups'
You are going to back up the data store. This could take some time, depending on the size of your data store.
Please do not interrupt the process once it has started.
Do you want to continue (Yes or No)?Yes
backupdatastore spds311016 --store spatiotemporal --location type=azure;location=blob4backups
You are going to back up the data store. This could take some time, depending on the size of your data store.
Please do not interrupt the process once it has started.
Do you want to continue (Yes or No)?Yes