RE: Log Shipping and Full Backup Frequency. Advice?

From: AnthonyThomas (AnthonyThomas_at_discussions.microsoft.com)
Date: 11/02/04


Date: Tue, 2 Nov 2004 06:02:01 -0800

They way to think of this is that the database, and it's files, are just
state variables: they only contain within them the values at any particular
point in time.

The transaction log is different; it is a recording of database actions.
Similar to the General Ledger in an accounting system.

Full, Differential, and File Group backups only backup the state of the
database. And, if you restore from any of these, you only get that state.
This is not the case with the transaction log or its backups. They are
independent. However, since the tansaction log contains action against the
database, it also notes when and at what state the database was in whenever a
full, differential, and/or filegroup backup was initiated and completed.

You need at least one Full backup, and maybe the others if you wish, to
create the initial database state. However, from that point forward,
restoring transaction log backups only to this system would be EXACTLY like
having every user who had logged in, relog in and execute every statement
just as it had occurred originally. It is, in essence, a replay of the
system activity, as far as database modifications go.

That is whay third-party tools that can read the transaction logs and there
backups so worth while: they can undo individual and/or sequences of
transactions.

This all supposes that you are running in FULL RECOVERY mode. If you are
running in BULK INSERT reocery, there will be gaps in the sequence. And, if
you are running in SIMPLE mode, you can not even backup the transaction log,
only the state backups described above.

Hope this helps.

Sincerely,

Anthony Thomas

"LCaffrey" wrote:

> Hi,
>
> After I do a full restore to a target reporting box, I continue
> refreshing the target with shipped transaction logs. Is there a limit
> to the amount of transaction logs that can be shipped before doing
> another full restore. For example and being extreme, could I continue
> shipping logs for 6 months or 1 year without a full restore?
>
> Also, I notice that full backups on the source box do not interfere
> with the LSN of the shipped transaction logs. Is this consistent with
> other people's experience. (i.e. transaction logs are backwardly
> compatible with all previous full backups as long as you have an
> unbroken sequence of transaction log files from that particular full
> backup).
>
> Regards
>
> Liam Caffrey
>



Relevant Pages

  • Re: Restoring from non-truncated transaction log
    ... The transaction log is there to support transactional consistency as well ... as supporting "incremental" backup. ... A database backup contains both data pages as well as the necessary log records (from the ... When your restore a database backup, ...
    (microsoft.public.sqlserver.server)
  • Re: Exchange Recovery Question
    ... I know that it does not purge any outdated log files. ... I performed an offline backup of the damaged database and associated ... log files prior to starting my restore. ... which does backups by the volume shadow copy API, ...
    (microsoft.public.exchange.admin)
  • RE: Recovering Documents
    ... the blob. ... This is the only database I have that uses a blob field so I'me not ... If you're trying to get where you can restore just part of a document your ... > are wondering if transaction log will capture the information and be of use ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: any way to fix a database that was open during backup?
    ... Entourage and everyone backs up their computer daily using Synchronize ... This week one of my users lost some email, so I went to restore ... Finder (or through backups) if they are opened. ... The database utility can fix a corrupted database where a little thing ...
    (microsoft.public.mac.office.entourage)
  • Re: Large transaction log causing write performance hit
    ... model or consider moving the transaction log to a separate disk where there ... A good recovery model depends on whether you want up to the minute restores ... The frequent transaction log backups or truncations will keep the size down ... then consider setting your database ...
    (microsoft.public.sqlserver.server)