Merge lp:~hrvojem/percona-xtrabackup/doc-57-2.2 into lp:percona-xtrabackup/2.2

Proposed by Hrvoje Matijakovic
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 4959
Proposed branch: lp:~hrvojem/percona-xtrabackup/doc-57-2.2
Merge into: lp:percona-xtrabackup/2.2
Diff against target: 159 lines (+108/-2)
4 files modified
storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_option_reference.rst (+12/-0)
storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_script.rst (+1/-0)
storage/innobase/xtrabackup/doc/source/innobackupex/storing_history.rst (+87/-0)
storage/innobase/xtrabackup/doc/source/release-notes/2.2/2.2.1-alpha1.rst (+8/-2)
To merge this branch: bzr merge lp:~hrvojem/percona-xtrabackup/doc-57-2.2
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+213227@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_option_reference.rst'
--- storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_option_reference.rst 2014-03-15 12:18:51 +0000
+++ storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_option_reference.rst 2014-03-28 11:49:26 +0000
@@ -98,6 +98,10 @@
9898
99 This option displays a help screen and exits.99 This option displays a help screen and exits.
100100
101.. option:: --history=NAME
102
103 This option enables the tracking of backup history in the ``PERCONA_SCHEMA.xtrabackup_history`` table. An optional history series name may be specified that will be placed with the history record for the current backup being taken.
104
101.. option:: --host=HOST105.. option:: --host=HOST
102106
103 This option accepts a string argument that specifies the host to use when connecting to the database server with TCP/IP. It is passed to the mysql child process without alteration. See :command:`mysql --help` for details.107 This option accepts a string argument that specifies the host to use when connecting to the database server with TCP/IP. It is passed to the mysql child process without alteration. See :command:`mysql --help` for details.
@@ -122,6 +126,14 @@
122126
123 This option accepts a string argument that specifies the directory where the incremental backup will be combined with the full backup to make a new full backup. It is used with the :option:`--incremental` option.127 This option accepts a string argument that specifies the directory where the incremental backup will be combined with the full backup to make a new full backup. It is used with the :option:`--incremental` option.
124128
129.. option:: --incremental-history-name=NAME
130
131 This option specifies the name of the backup series stored in the :ref:`PERCONA_SCHEMA.xtrabackup_history <xtrabackup_history>` history record to base an incremental backup on. Percona Xtrabackup will search the history table looking for the most recent (highest innodb_to_lsn), successful backup in the series and take the to_lsn value to use as the starting lsn for the incremental backup. This will be mutually exclusive with :option:`innobackupex --incremental-history-uuid`,:option:`innobackupex --incremental-basedir` and :option:`innobackupex --incremental-lsn`. If no valid lsn can be found (no series by that name, no successful backups by that name) xtrabackup will return with an error. It is used with the :option:`innobackupex --incremental` option.
132
133.. option:: --incremental-history-uuid=UUID
134
135 This option specifies the UUID of the specific history record stored in the :ref:`PERCONA_SCHEMA.xtrabackup_history <xtrabackup_history>` to base an incremental backup on. :option:`innobackupex --incremental-history-name`,:optionL`innobackupex --incremental-basedir` and :option:`innobackupex --incremental-lsn`. If no valid lsn can be found (no success record with that uuid) xtrabackup will return with an error. It is used with the :option:`innobackupex --incremental` option.
136
125.. option:: --incremental-lsn137.. option:: --incremental-lsn
126138
127 This option accepts a string argument that specifies the log sequence number (:term:`LSN`) to use for the incremental backup. It is used with the :option:`--incremental` option. It is used instead of specifying :option:`--incremental-basedir`. For databases created by *MySQL* and *Percona Server* 5.0-series versions, specify the as two 32-bit integers in high:low format. For databases created in 5.1 and later, specify the LSN as a single 64-bit integer.139 This option accepts a string argument that specifies the log sequence number (:term:`LSN`) to use for the incremental backup. It is used with the :option:`--incremental` option. It is used instead of specifying :option:`--incremental-basedir`. For databases created by *MySQL* and *Percona Server* 5.0-series versions, specify the as two 32-bit integers in high:low format. For databases created in 5.1 and later, specify the LSN as a single 64-bit integer.
128140
=== modified file 'storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_script.rst'
--- storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_script.rst 2013-11-15 12:42:15 +0000
+++ storage/innobase/xtrabackup/doc/source/innobackupex/innobackupex_script.rst 2014-03-28 11:49:26 +0000
@@ -51,6 +51,7 @@
51 restoring_individual_tables_ibk51 restoring_individual_tables_ibk
52 pit_recovery_ibk52 pit_recovery_ibk
53 improved_ftwrl53 improved_ftwrl
54 storing_history
5455
5556
56Implementation57Implementation
5758
=== added file 'storage/innobase/xtrabackup/doc/source/innobackupex/storing_history.rst'
--- storage/innobase/xtrabackup/doc/source/innobackupex/storing_history.rst 1970-01-01 00:00:00 +0000
+++ storage/innobase/xtrabackup/doc/source/innobackupex/storing_history.rst 2014-03-28 11:49:26 +0000
@@ -0,0 +1,87 @@
1.. _storing_history:
2
3====================================
4 Store backup history on the server
5====================================
6
7|Percona XtraBackup| supports storing the backups history on the server. This feature was implemented in |Percona XtraBackup| 2.2. Storing backup history on the server was implemented to provide users with additional information about backups that are being taken. Backup history information will be stored in the :ref:`PERCONA_SCHEMA.XTRABACKUP_HISTORY <xtrabackup_history>` table.
8
9To use this feature three new |innobackupex| options have been implemented:
10
11* :option:`innobackupex --history` =<name> : This option enables the history feature and allows the user to specify a backup series name that will be placed within the history record.
12
13* :option:`innobackupex --incremental-history-name` =<name> : This option allows an incremental backup to be made based on a specific history series by name. |innobackupex| will search the history table looking for the most recent (highest ``to_lsn``) backup in the series and take the ``to_lsn`` value to use as it's starting lsn. This is mutually exclusive with :option:`innobackupex --incremental-history-uuid`, :option:`innobackupex --incremental-basedir` and :option:`innobackupex --incremental-lsn` options. If no valid LSN can be found (no series by that name) |innobackupex| will return with an error.
14* :option:`innobackupex --incremental-history-uuid` =<uuid> : Allows an incremental backup to be made based on a specific history record identified by UUID. |innobackupex| will search the history table looking for the record matching UUID and take the ``to_lsn`` value to use as it's starting LSN. This options is mutually exclusive with :option:`innobackupex --incremental-basedir`, :option:`innobackupex --incremental-lsn` and :option:`innobackupex --incremental-history-name` options. If no valid LSN can be found (no record by that UUID or missing ``to_lsn``), |innobackupex| will return with an error.
15
16.. note::
17
18 Backup that's currently being performed will **NOT** exist in the xtrabackup_history table within the resulting backup set as the record will not be added to that table until after the backup has been taken.
19
20If you want access to backup history outside of your backup set in the case of some catastrophic event, you will need to either perform a ``mysqldump``, partial backup or ``SELECT`` * on the history table after |innobackupex| completes and store the results with you backup set.
21
22Privileges
23----------
24
25User performing the backup will need following privileges:
26
27* ``CREATE`` privilege in order to create the :ref:`PERCONA_SCHEMA.xtrabackup_history <xtrabackup_history>` database and table.
28* ``INSERT`` privilege in order to add history records to the :ref:`PERCONA_SCHEMA.xtrabackup_history <xtrabackup_history>` table.
29* ``SELECT`` privilege in order to use :option:`innobackupex --incremental-history-name` or :option:`innobackupex --incremental-history-uuid` in order for the feature to look up the ``innodb_to_lsn`` values in the :ref:`PERCONA_SCHEMA.xtrabackup_history <xtrabackup_history>` table.
30
31.. _xtrabackup_history:
32
33PERCONA_SCHEMA.XTRABACKUP_HISTORY table
34---------------------------------------
35
36This table contains the information about the previous server backups. Information about the backups will only be written if the backup was taken with :option:`innobackupex --history` option.
37
38.. list-table::
39 :header-rows: 1
40 :widths: 20 40
41
42 * - Column Name
43 - Description
44 * - uuid
45 - Unique backup id
46 * - name
47 - User provided name of backup series. There may be multiple entries with the same name used to identify related backups in a series.
48 * - tool_name
49 - Name of tool used to take backup
50 * - tool_command
51 - Exact command line given to the tool with --password and --encryption_key obfuscated
52 * - tool_version
53 - Version of tool used to take backup
54 * - ibbackup_version
55 - Version of the xtrabackup binary used to take backup
56 * - server_version
57 - Server version on which backup was taken
58 * - start_time
59 - Time at the start of the backup
60 * - end_time
61 - Time at the end of the backup
62 * - lock_time
63 - Amount of time, in seconds, spent calling and holding locks for ``FLUSH TABLES WITH READ LOCK``
64 * - binlog_pos
65 - Binlog file and position at end of ``FLUSH TABLES WITH READ LOCK``
66 * - innodb_from_lsn
67 - LSN at beginning of backup which can be used to determine prior backups
68 * - innodb_to_lsn
69 - LSN at end of backup which can be used as the starting lsn for the next incremental
70 * - partial
71 - Is this a partial backup, if ``N`` that means that it's the full backup
72 * - incremental
73 - Is this an incremental backup
74 * - format
75 - Description of result format (``file``, ``tar``, ``xbstream``)
76 * - compact
77 - Is this a compact backup
78 * - compressed
79 - Is this a compressed backup
80 * - encrypted
81 - Is this an encrypted backup
82
83Limitiatons
84-----------
85
86* :option:`innobackupex --history` option must be specified only on the innobackupex command line and not within a configuration file in order to be effective.
87* :option:`innobackupex --incremental-history-name` and :option:`innobackupex --incremental-history-uuid` options must be specified only on the innobackupex command line and not within a configuration file in order to be effective.
088
=== modified file 'storage/innobase/xtrabackup/doc/source/release-notes/2.2/2.2.1-alpha1.rst'
--- storage/innobase/xtrabackup/doc/source/release-notes/2.2/2.2.1-alpha1.rst 2014-03-26 07:39:36 +0000
+++ storage/innobase/xtrabackup/doc/source/release-notes/2.2/2.2.1-alpha1.rst 2014-03-28 11:49:26 +0000
@@ -17,7 +17,7 @@
1717
18 |Percona XtraBackup| implemented support for `Backup Locks <http://www.percona.com/doc/percona-server/5.6/management/backup_locks.html#backup-locks>`_.18 |Percona XtraBackup| implemented support for `Backup Locks <http://www.percona.com/doc/percona-server/5.6/management/backup_locks.html#backup-locks>`_.
1919
20 |Percona XtraBackup| can now store backup history on the server itself in a special table created for that purpose. 20 |Percona XtraBackup| can now store :ref:`backup history <storing_history>` on the server itself in a special table created for that purpose.
2121
22 ``innobackupex-1.5.1`` symlink has been removed, instead |innobackupex| binary should be used.22 ``innobackupex-1.5.1`` symlink has been removed, instead |innobackupex| binary should be used.
2323
@@ -25,5 +25,11 @@
2525
26 |Percona XtraBackup| has been rebased on |MySQL| 5.6.16.26 |Percona XtraBackup| has been rebased on |MySQL| 5.6.16.
2727
28 28Bugs Fixed
29----------
2930
31 Information about tool version used to take the backup was added by implementing :ref:`backup history <storing_history>` feature. Bug fixed :bug:`1133017`.
32
33 If an XtraDB-based binary was used to a backup an |InnoDB| database, it will convert it to |XtraDB| by adding the ``XTRADB_1`` marker in the dictionary header page and by adding the ``SYS_STATS`` table. Bug fixed :bug:`988310`.
34
35Other bugs fixed: :bug:`721690`, :bug:`1255899`, :bug:`1255901`, :bug:`1268300`, and :bug:`788316`.

Subscribers

People subscribed via source and target branches