Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
e92cb58e
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,发现更多精彩内容 >>
提交
e92cb58e
编写于
1月 05, 2018
作者:
M
Mel Kiyama
提交者:
dyozie
1月 05, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: gpbackup update - metadata backed up into a single file, add incompatibility warning (#4257)
PR for 5X_STABLE Will be ported to MAIN
上级
63d65cf9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
36 addition
and
31 deletion
+36
-31
gpdb-doc/dita/admin_guide/managing/backup-gpbackup.xml
gpdb-doc/dita/admin_guide/managing/backup-gpbackup.xml
+36
-31
未找到文件。
gpdb-doc/dita/admin_guide/managing/backup-gpbackup.xml
浏览文件 @
e92cb58e
...
...
@@ -6,11 +6,14 @@
<note><codeph>
gpbackup
</codeph>
and
<codeph>
gprestore
</codeph>
are experimental utilities and
are not intended for use in a production environment. Experimental features are subject to
change without notice in future releases.
</note>
<note
type=
"warning"
>
The utilities are experimental and might not be compatible between
releases. For example, backups from a previous release might be incompatible with the current
release utilities.
</note>
<p><codeph>
gpbackup
</codeph>
and
<codeph>
gprestore
</codeph>
are new utilities that provide an
improved way of creating and restoring backup sets for Greenplum Database. By default,
<codeph>
gpbackup
</codeph>
stores only the object metadata files and DDL files for a backup
in the Greenplum Database master data directory. Greenplum Database segments use the
<codeph>
COPY .. ON SEGMENT
</codeph>
command to store their data for backed-up tables in
<codeph>
COPY ..
.
ON SEGMENT
</codeph>
command to store their data for backed-up tables in
compressed CSV data files, located in each segment's
<filepath>
backups
</filepath>
directory.
</p>
<p>
The backup metadata files contain all of the information that
<codeph>
gprestore
</codeph>
...
...
@@ -26,15 +29,15 @@
partitions.
</p>
<p>
Each
<codeph>
gpbackup
</codeph>
task uses a single transaction in Greenplum Database. During
this transaction, metadata is backed up on the master host, and data for each table on each
segment host is written to CSV backup files using
<codeph>
COPY ..
ON SEGMENT
</codeph>
commands
in parallel. The backup process acquires an
<codeph>
ACCESS SHARE
</codeph>
lock on each table
that is backed up.
</p>
segment host is written to CSV backup files using
<codeph>
COPY ..
. ON SEGMENT
</codeph>
commands in parallel. The backup process acquires an
<codeph>
ACCESS SHARE
</codeph>
lock on
each table
that is backed up.
</p>
</body>
<topic
id=
"topic_vh5_1hd_tbb"
>
<title>
Requirements and Limitations
</title>
<body>
<p>
You can use
<codeph>
gpbackup
</codeph>
and
<codeph>
gprestore
</codeph>
on Greenplum Database
systems that support the
<codeph>
COPY .. ON SEGMENT
</codeph>
command (Greenplum Database
systems that support the
<codeph>
COPY ..
.
ON SEGMENT
</codeph>
command (Greenplum Database
5.1.0 and later
<ph
otherprops=
"pivotal"
>
, or 4.3.17.0 and later
</ph>
).
</p>
<p><codeph>
gpbackup
</codeph>
and
<codeph>
gprestore
</codeph>
are experimental features in this
release, and have the following limitations:
<ul
id=
"ul_uqh_hhd_tbb"
>
...
...
@@ -133,35 +136,37 @@
use the command:
<codeblock>
$ gpbackup -dbname
<
database_name>
</codeblock></p>
<p>
For
example:
<codeblock>
$
<b>
gpbackup -dbname demo
</b>
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Starting backup of database demo
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Backup Timestamp = 20171103152558
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Backup Database = demo
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Backup Type = Unfiltered Compressed Full Backup
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Acquiring ACCESS SHARE locks on tables
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Locks acquired
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Gathering table metadata
20171103:15:25:58 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Writing global database metadata to /gpmaster/gpsne-1/backups/20171103/20171103152558/gpbackup_20171103152558_global.sql
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Global database metadata backup complete
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Writing pre-data metadata to /gpmaster/gpsne-1/backups/20171103/20171103152558/gpbackup_20171103152558_predata.sql
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Pre-data metadata backup complete
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Writing post-data metadata to /gpmaster/gpsne-1/backups/20171103/20171103152558/gpbackup_20171103152558_postdata.sql
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Post-data metadata backup complete
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Writing data to file
Tables backed up: 2 / 2 [==============================================================] 100.00% 0s
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Data backup complete
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[WARNING]:-Found neither /usr/local/greenplum-db/./bin/mail_contacts nor /home/gpadmin/mail_contacts
20171103:15:25:59 gpbackup:gpadmin:0ee2f5fb02c9:017527-[WARNING]:-Unable to send backup email notification
20171103:15:26:00 gpbackup:gpadmin:0ee2f5fb02c9:017527-[INFO]:-Backup completed successfully
</codeblock></p>
<p>
The above command creates global and database-specific metadata files on the Greenplum
Database master host in the default directory,
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Starting backup of database demo
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Backup Timestamp = 20180105112754
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Backup Database = demo
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Backup Type = Unfiltered Compressed Full Backup
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Gathering list of tables for backup
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Acquiring ACCESS SHARE locks on tables
Locks acquired: 6 / 6 [================================================================] 100.00% 0s
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Gathering additional table metadata
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Writing global database metadata
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Global database metadata backup complete
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Writing pre-data metadata
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Pre-data metadata backup complete
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Writing post-data metadata
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Post-data metadata backup complete
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Writing data to file
Tables backed up: 3 / 3 [==============================================================] 100.00% 0s
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Data backup complete
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[WARNING]:-Found neither /usr/local/greenplum-db/./bin/mail_contacts nor /home/gpadmin/mail_contacts
20180105:11:27:54 gpbackup:gpadmin:centos6.localdomain:002182-[WARNING]:-Unable to send backup email notification
20180105:11:27:55 gpbackup:gpadmin:centos6.localdomain:002182-[INFO]:-Backup completed successfully
</codeblock></p>
<p>
The above command creates a file that contains global and database-specific metadata on the
Greenplum Database master host in the default directory,
<codeph>
$MASTER_DATA_DIRECTORY/backups/
<
YYYYMMDD>/
<
YYYYMMDDHHMMSS>/
</codeph>
. For
example:
<codeblock>
$
<b>
ls /gpmaster/gpsne-1/backups/201
71103/20171103152558/
</b>
gpbackup_201
71103152558_config.yaml gpbackup_20171103152558_postdata.sql gpbackup_20171103152558
_report
gpbackup_201
71103152558_global.sql gpbackup_20171103152558_predata.sql gpbackup_20171103152558
_toc.yaml
</codeblock></p>
example:
<codeblock>
$
<b>
ls /gpmaster/gpsne-1/backups/201
80105/20180105112754
</b>
gpbackup_201
80105112754_config.yaml gpbackup_20180105112754
_report
gpbackup_201
80105112754_metadata.sql gpbackup_20180105112754
_toc.yaml
</codeblock></p>
<p>
By default, each segment stores each table's data for the backup in a separate compressed
CSV file in
<codeph>
<
seg_dir>/backups/
<
YYYYMMDD>/
<
YYYYMMDDHHMMSS>/
</codeph>
:
<codeblock>
$
<b>
ls /gpdata1/gpsne0/backups/20171103/20171103152558/
</b>
gpbackup_0_20171103152558_16524.gz gpbackup_0_20171103152558_16543.gz
</codeblock></p>
<codeph>
<
seg_dir>/backups/
<
YYYYMMDD>/
<
YYYYMMDDHHMMSS>/
</codeph>
:
<codeblock>
$
<b>
ls /gpdata1/gpsne0/backups/20180105/20180105112754/
</b>
gpbackup_0_20180105112754_17166.gz gpbackup_0_20180105112754_26303.gz
gpbackup_0_20180105112754_21816.gz
</codeblock></p>
<p>
To consolidate all backup files into a single directory, include the
<codeph>
-backupdir
</codeph>
option. Note that you must specify an absolute path with this
option:
<codeblock>
$
<b>
gpbackup -dbname demo -backupdir /home/gpadmin/backups
</b>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录