Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Add incremental backup to steamed base backup?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paranoid SysAdmin  
View profile  
 More options Jul 24 2012, 2:44 am
From: Paranoid SysAdmin <paul.christi...@gmail.com>
Date: Mon, 23 Jul 2012 23:44:44 -0700 (PDT)
Local: Tues, Jul 24 2012 2:44 am
Subject: Add incremental backup to steamed base backup?

Hi,

I am using innobackupex to run nightly full backups of a mysqld database
with great success.  These are being streamed as tar, piped through gzip
and redirected to backup.tar.gz.

Now I would like to add incremental backups to this base backup.  The
problem is, I need to be able to access the to_lsn value.
Is there any easy way to do this??

The only lsn I can find in stderr is xtrabackup:

Transaction log of lsn (1096298065) to (1096298065) was copied.

I wrote a script which grabbed this and generated an
'xtrabackup_checkpoints' file using this (1096298065) as the to_lsn.
The problem is, if I extract the xtrabackup_checkpoints file from the tar
archive, it has the to_lsn of: 1399401679

Where does innobackupex pull this from?  I can't find it in the output
(stderr).
Surely I'm not the only one who wants to stream to tar and also run
incremental backups, am I?  How does everyone else do it?

Cheers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paranoid SysAdmin  
View profile  
 More options Jul 26 2012, 8:01 pm
From: Paranoid SysAdmin <paul.christi...@gmail.com>
Date: Thu, 26 Jul 2012 17:01:48 -0700 (PDT)
Local: Thurs, Jul 26 2012 8:01 pm
Subject: Re: Add incremental backup to steamed base backup?

Really?  I'm the only one who wants to run incremental backups on streamed
full backups?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johann Vincent Paul Tagle  
View profile  
 More options Jul 26 2012, 8:20 pm
From: Johann Vincent Paul Tagle <johannta...@gmail.com>
Date: Fri, 27 Jul 2012 08:20:42 +0800
Local: Thurs, Jul 26 2012 8:20 pm
Subject: Re: Add incremental backup to steamed base backup?

My personal opinion on this - if I want a backup regularly updated using
incremental backups so that I have the most recent possible data when I
have to do a restore, I would also want to be able to do the restore
quickly, so I wouldn't want the extra time needed to extract the backup
from a tar.gz file.  So we always keep our more recent backup in unarchived
form on a separate volume, ready to be mounted in case failure happens.
 The only time I tar.gz a backup is for transfer to offsite, and our
objective is still to take the quickest time possible to restore so what I
did is to do the full backup without streaming so that I can then
immediately prepare the backup.   After preparing the backup I deleted the
xtrabackup_logfile so that when I do make at tar.gz, it's significantly
smaller.

Just sharing my opinion =)

Johann


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paranoid SysAdmin  
View profile  
 More options Jul 26 2012, 8:41 pm
From: Paranoid SysAdmin <paul.christi...@gmail.com>
Date: Thu, 26 Jul 2012 17:41:36 -0700 (PDT)
Local: Thurs, Jul 26 2012 8:41 pm
Subject: Re: Add incremental backup to steamed base backup?

Thanks for the Opinion.  I see your point however we are also piping
through openssl and cannot afford to have unencrypted versions of our
backups sitting on the server.  I am setting up a work around using a
truecrypt volume as a temporary space and writing a bash script to move the
checkpoints file, tar and encrypt the backup then send it off to Amazon S3.

Security is the priority for our product rather than speed/uptime.

You just gave me one though.  Is it okay to prepare the backup immediately
after performing it?  The documentation says to prepare the backup just
before restoring it.  But you said you prepare the backup, delete the
logfile and then tar/gzip it.  So this can be done long immediately after
the backup is performed?

Cheers


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johann Vincent Paul Tagle  
View profile  
 More options Jul 27 2012, 12:32 am
From: Johann Vincent Paul Tagle <johannta...@gmail.com>
Date: Fri, 27 Jul 2012 12:32:30 +0800
Local: Fri, Jul 27 2012 12:32 am
Subject: Re: Add incremental backup to steamed base backup?

Yes.  I asked about this last year since our xtrabackup_logfile is huge
every time we do a backup so I didn't want to have to make it part of the
tar.gz file.  I remember it was also mentioned that being able to prepare
it is also a good sign the backup was a good one.  I don't think you can
still apply an incremental after you do that though.

Johann


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stewart Smith  
View profile  
 More options Jul 27 2012, 2:23 am
From: Stewart Smith <stew...@flamingspork.com>
Date: Fri, 27 Jul 2012 16:23:01 +1000
Local: Fri, Jul 27 2012 2:23 am
Subject: Re: Add incremental backup to steamed base backup?

Paranoid SysAdmin <paul.christi...@gmail.com> writes:
> Thanks for the Opinion.  I see your point however we are also piping
> through openssl and cannot afford to have unencrypted versions of our
> backups sitting on the server.  I am setting up a work around using a
> truecrypt volume as a temporary space and writing a bash script to move the
> checkpoints file, tar and encrypt the backup then send it off to Amazon S3.

> Security is the priority for our product rather than speed/uptime.

We're working on encrypting built into XtraBackup streaming, so you'd be
able to stream an encrypted backup straight out of XtraBackup up into
S3.

Are there any specific crypto requirements you have?

--
Stewart Smith

  application_pgp-signature_part
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »