12.4. 恢复红帽更新设备数据库
流程
进入
postgres用户:# su - postgres恢复 PostgreSQL 数据库:
# pg_restore -j 4 -F d -d pulp <pg_dump_directory>
注意
与 pg_restore 命令一起使用的参数如下:-j 4: Instructs pg_restore 使用 4 个并行线程运行。-F d: Instructs pg_restore 用于选择目录归档作为输入的格式。-d pulp pulp : Instructs pg_restore 使用数据库名称 pulp.
<pg_dump_directory> :
重要
postgres 用户必须能够读取 pg_dump_directory。
重要
此操作可能需要大量时间。为便于参考,我们具有 600 个仓库的数据库示例最多需要 5 小时。