Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
83ff0d71
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
83ff0d71
编写于
6月 27, 2017
作者:
A
Andreas Scherbaum
提交者:
Andreas Scherbaum
6月 27, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update date ranges in admin utilities to something more recent (#2687)
上级
f424ea62
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
gpdb-doc/dita/utility_guide/admin_utilities/gpdbrestore.xml
gpdb-doc/dita/utility_guide/admin_utilities/gpdbrestore.xml
+13
-13
未找到文件。
gpdb-doc/dita/utility_guide/admin_utilities/gpdbrestore.xml
浏览文件 @
83ff0d71
...
...
@@ -428,35 +428,35 @@
<codeblock>
gpdbrestore -s sales
</codeblock>
<p>
Restore a database from backup files that reside on an archive host outside the Greenplum
Database array (command issued on the Greenplum master host):
</p>
<codeblock>
gpdbrestore -R archivehostname:/data_p1/db_dumps/20
08
0214
</codeblock>
<codeblock>
gpdbrestore -R archivehostname:/data_p1/db_dumps/20
16
0214
</codeblock>
<p>
Restore global objects only (roles and tablespaces):
</p>
<codeblock>
gpdbrestore -G
</codeblock>
<note>
The
<codeph>
-R
</codeph>
option is not supported when restoring a backup set that
includes incremental backups.
</note>
<p>
If you restore from a backup set that contains an incremental backup, all the files in the
backup set must be available to
<codeph>
gpdbrestore
</codeph>
. For example, the following
timestamp keys specify a backup set. 201
2
0514054532 is the full backup and the others are
timestamp keys specify a backup set. 201
6
0514054532 is the full backup and the others are
incremental.
</p>
<pre>
201
2
0514054532
201
2
0714095512
201
2
0914081205
201
2
1114064330
201
3
0114051246
</pre>
<pre>
201
6
0514054532
201
6
0714095512
201
5
0914081205
201
6
1114064330
201
7
0114051246
</pre>
<p>
The following
<codeph>
gbdbrestore
</codeph>
command specifies the timestamp key
201
21114064330. The incremental backup with the timestamps 20120714095512 and 2012
0914081205
201
61114064330. The incremental backup with the timestamps 20160714095512 and 2016
0914081205
and the full backup must be available to perform a restore.
</p>
<codeblock>
gpdbrestore -t 201
2
1114064330
</codeblock>
<codeblock>
gpdbrestore -t 201
6
1114064330
</codeblock>
<p>
The following
<codeph>
gbdbrestore
</codeph>
command uses the
<codeph>
--noplan
</codeph>
option to restore only the data that was backed up during the incremental backup with the
timestamp key 201
2
1114064330. Data in the previous incremental backups and the data in the
timestamp key 201
6
1114064330. Data in the previous incremental backups and the data in the
full backup are not restored.
</p>
<codeblock>
gpdbrestore -t 201
2
1114064330 --noplan
</codeblock>
<codeblock>
gpdbrestore -t 201
6
1114064330 --noplan
</codeblock>
<p>
This gpdbrestore command restores Greenplum Database data from the data managed by
NetBackup master server
<codeph>
nbu_server1
</codeph>
. The option
<codeph>
-t
201
3
0530090000
</codeph>
specifies the timestamp generated by
<codeph>
gpcrondump
</codeph>
201
7
0530090000
</codeph>
specifies the timestamp generated by
<codeph>
gpcrondump
</codeph>
when the backup was created. The
<codeph>
-e
</codeph>
option specifies that the target
database is dropped before it is restored.
</p>
<codeblock>
gpdbrestore -t 201
3
0530090000 -e --netbackup-service-host=nbu_server1
</codeblock>
<codeblock>
gpdbrestore -t 201
7
0530090000 -e --netbackup-service-host=nbu_server1
</codeblock>
</section>
<section
id=
"section8"
>
<title>
See Also
</title>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录