Vojtech Kurka <
vojtec...@gmail.com> writes:
>> Xbstream is an archival format like tar, it does no compression
>> of its own, which is why qpress is used.
>
>
> Raghavendra <
raghavend...@percona.com>,
>
> tar can decompress the the whole archive, if you tell it so
> (--use-compress-program=PROG). It would be nice if xbstream could
> decompress the individual *.qp files.
>
> Currently, when you need a full restore (i.e. to load new slave server),
> you must do too much i/o.
> In example: I have 1TB data in many tablespaces, the compressed backup is
> about 500GB. The recovery:
> 1.) unpack the xbstream archive => 500GB of write i/o, 500GB of read i/o
> 2.) decompress the individual .qp files => write 1TB of i/o, 500GB of read
> i/o
> 3.) apply log
> 4.) --copy-back => 1TB of write i/o, 1TB of read i/o
>
> Steps 1.) and 4.) should be omitted, because they make the restore two
> times longer than it should be. The --move-back option is implemented in
> launchpad, but the patch is still not approved I think.
>
> Yes, everyone can make some workarounds as mentioned earlier in this
> thread, but internal xtrabackup implementation would be nice. Or is it
> already possible and I'm missing something?
We're planning to make things much easier in future versions (but, as
always, patches are welcome!). What's good to see is that people are
using compressed backups and the biggest problem is nicer and faster
ways of restoring :)
--
Stewart Smith