support partition as command line option to xtrabackup

Bug #1008826 reported by Bhushan Uparkar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Hrvoje Matijakovic

Bug Description

Hello,

I am using mysql 5.5 with lots of range based partitioned tables . I use monthly partitions and use sliding window of 12 months as data retention policy. In current environment, I dont update data for previous months partition. So as I roll forward to the next month , the partitions for previous months becomes static ones. I only update data for current partitions at any time.

  So far we could provide table names, tables-file as command line options , to selectively back them using xtrabackup. On the same line if xtrabackup add supports to backup 'partitions' as command line filter, it would be super. With extensive use of partitioned tables now days, this is much needed feature. With this feature xtrabackup will be truly partition compatible backup solution.

Tags: doc

Related branches

Revision history for this message
Alexey Kopytov (akopytov) wrote :

It is already possible to backup individual partitions with XtraBackup, since from the storage engines perspective partitions are regular tables with specially formatted names.

For example, table t containing partitions p0, p1 and p2 will be 3 separate tables inside InnoDB: t#P#p0, t#P#p1 and t#P#p2. So all that needs to be done to backup partition p0 (apart from enabling innodb_file_per_table) is to use t#P#p0 as a table 'name'.

We don't have that procedure documented anywhere explicitly, so I'm changing this bug to a doc request.

tags: added: doc
Changed in percona-xtrabackup:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Hrvoje Matijakovic (hrvojem)
Revision history for this message
Bhushan Uparkar (bhushan-uparkar-yahoo) wrote :

Hello Alexey,

  This is wonderful ! Thanks for commenting on this undocumented feature. This will save tons of time for people wanted to backup selective partitions of tables.

 I did verified the above for backing selective partitions, and it worked for me.

Thanks agaiin !

Changed in percona-xtrabackup:
status: Triaged → In Progress
Changed in percona-xtrabackup:
status: In Progress → Fix Committed
Changed in percona-xtrabackup:
status: Fix Committed → In Progress
Changed in percona-xtrabackup:
status: In Progress → Fix Committed
Changed in percona-xtrabackup:
status: Fix Committed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-595

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.