Showing posts with label differntial. Show all posts
Showing posts with label differntial. Show all posts

Wednesday, March 21, 2012

Differntial Backups

Hi,
I wrote a script that theoretically does the following:
Does a weekly full backup to a file
Does a nightly differential backup to a file
Does hourly transaction logs to a seperate file per hour.
As I understand it, the differential is supposed to be based off of the full
backup. After the first nightly, is each differential still based off of
the original full back up? or is it based of the previous nights
differential, which means I'd have to keep each daily differential until the
week cycled
Thanks,
GaryA diff backup is always based on the latest full backup. This is why you do
the restore like: latest full backup, *latest* diff backup and each
subsequent log backups.
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Gary" <n> wrote in message news:%23mUwyzp6DHA.1556@.tk2msftngp13.phx.gbl...
> Hi,
> I wrote a script that theoretically does the following:
> Does a weekly full backup to a file
> Does a nightly differential backup to a file
> Does hourly transaction logs to a seperate file per hour.
> As I understand it, the differential is supposed to be based off of the
full
> backup. After the first nightly, is each differential still based off of
> the original full back up? or is it based of the previous nights
> differential, which means I'd have to keep each daily differential until
the
> week cycled
> Thanks,
> Gary
>|||Thanks.
I was pretty sure that's how it worked, I just wanted a second opinion
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%231UIe4p6DHA.3648@.TK2MSFTNGP11.phx.gbl...
> A diff backup is always based on the latest full backup. This is why you
do
> the restore like: latest full backup, *latest* diff backup and each
> subsequent log backups.
> --
> Tibor Karaszi, SQL Server MVP
> Archive at:
>
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
>
> "Gary" <n> wrote in message
news:%23mUwyzp6DHA.1556@.tk2msftngp13.phx.gbl...
> > Hi,
> >
> > I wrote a script that theoretically does the following:
> >
> > Does a weekly full backup to a file
> > Does a nightly differential backup to a file
> > Does hourly transaction logs to a seperate file per hour.
> >
> > As I understand it, the differential is supposed to be based off of the
> full
> > backup. After the first nightly, is each differential still based off
of
> > the original full back up? or is it based of the previous nights
> > differential, which means I'd have to keep each daily differential until
> the
> > week cycled
> >
> > Thanks,
> > Gary
> >
> >
>

Differntial Backups

Hi,
I wrote a script that theoretically does the following:
Does a weekly full backup to a file
Does a nightly differential backup to a file
Does hourly transaction logs to a seperate file per hour.
As I understand it, the differential is supposed to be based off of the full
backup. After the first nightly, is each differential still based off of
the original full back up? or is it based of the previous nights
differential, which means I'd have to keep each daily differential until the
week cycled
Thanks,
GaryA diff backup is always based on the latest full backup. This is why you do
the restore like: latest full backup, *latest* diff backup and each
subsequent log backups.
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=...ublic.sqlserver
"Gary" <n> wrote in message news:%23mUwyzp6DHA.1556@.tk2msftngp13.phx.gbl...
quote:

> Hi,
> I wrote a script that theoretically does the following:
> Does a weekly full backup to a file
> Does a nightly differential backup to a file
> Does hourly transaction logs to a seperate file per hour.
> As I understand it, the differential is supposed to be based off of the

full
quote:

> backup. After the first nightly, is each differential still based off of
> the original full back up? or is it based of the previous nights
> differential, which means I'd have to keep each daily differential until

the
quote:

> week cycled
> Thanks,
> Gary
>
|||Thanks.
I was pretty sure that's how it worked, I just wanted a second opinion
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%231UIe4p6DHA.3648@.TK2MSFTNGP11.phx.gbl...
quote:

> A diff backup is always based on the latest full backup. This is why you

do
quote:

> the restore like: latest full backup, *latest* diff backup and each
> subsequent log backups.
> --
> Tibor Karaszi, SQL Server MVP
> Archive at:
>

http://groups.google.com/groups?oi=...ublic.sqlserver
quote:

>
> "Gary" <n> wrote in message

news:%23mUwyzp6DHA.1556@.tk2msftngp13.phx.gbl...
quote:

> full
of[QUOTE]
> the
>

Differntial Backup doesn't work

I setup Differntial Backup through EM but it doesn't
work. The backup file added up 1G in every back up and
end up with running out of space.
Can anybody tell me what's wrong?
Frankprobably you are adding backup into existing backup over and over, causing
it increases until no more empty sapce. You need to review your backup
strategy.
"Frank Jiang" <frank@.discussions.microsoft.com> wrote in message
news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
quote:

> I setup Differntial Backup through EM but it doesn't
> work. The backup file added up 1G in every back up and
> end up with running out of space.
> Can anybody tell me what's wrong?
> Frank
|||I do a complete backup once eveyday and differential
backup every 20 minutes, append to media.
I check all the setting of the differential backup in
Enterprise Manager and didn't find anything wrong.
Frank
quote:

>--Original Message--
>probably you are adding backup into existing backup over

and over, causing
quote:

>it increases until no more empty sapce. You need to

review your backup
quote:

>strategy.
>"Frank Jiang" <frank@.discussions.microsoft.com> wrote in

message
quote:

>news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
>
>.
>
|||with differential backup you don't have the option to restore DB to a
certain time.
Can you do differential backup every 4 hrs and do log backup every 20
minutes to a separate backup device? It may help.
"Frank J" <frank@.discussions.microsoft.com> wrote in message
news:330801c3e1da$b4ee92c0$a501280a@.phx.gbl...[QUOTE]
> I do a complete backup once eveyday and differential
> backup every 20 minutes, append to media.
> I check all the setting of the differential backup in
> Enterprise Manager and didn't find anything wrong.
> Frank
>
> and over, causing
> review your backup
> message|||It never happened so far that we need to restore DB. But
theoretically, we can resote DB from a complete backup
and on top of that we do recover from differential
backup. Thats why we do a complete backup everyday and
followed by 20 minutes differential backup.
Transaction log is huge and should we backup it?
Frank
quote:

>--Original Message--
>with differential backup you don't have the option to

restore DB to a
quote:

>certain time.
>Can you do differential backup every 4 hrs and do log

backup every 20
quote:

>minutes to a separate backup device? It may help.
>
>"Frank J" <frank@.discussions.microsoft.com> wrote in

message
quote:

>news:330801c3e1da$b4ee92c0$a501280a@.phx.gbl...
over[QUOTE]
in[QUOTE]
and[QUOTE]
>
>.
>
|||from BOL: A differential backup creates a copy of all the pages in a
database modified after the last database backup.
so to restore you just need a full backup and the last differential backup.
You keep adding differential backup into same backup device every 20 minutes
then no wonder it keeps growing 'til you are out of space.
quote:

> Transaction log is huge and should we backup it?

depend on your needs. I always backup the log.
"Frank J" <anonymous@.discussions.microsoft.com> wrote in message
news:2cbc01c3e1e7$7aef6470$a101280a@.phx.gbl...[QUOTE]
> It never happened so far that we need to restore DB. But
> theoretically, we can resote DB from a complete backup
> and on top of that we do recover from differential
> backup. Thats why we do a complete backup everyday and
> followed by 20 minutes differential backup.
> Transaction log is huge and should we backup it?
> Frank
>
> restore DB to a
> backup every 20
> message
> over
> in
> and

Differntial Backup doesn't work

I setup Differntial Backup through EM but it doesn't
work. The backup file added up 1G in every back up and
end up with running out of space.
Can anybody tell me what's wrong?
Frankprobably you are adding backup into existing backup over and over, causing
it increases until no more empty sapce. You need to review your backup
strategy.
"Frank Jiang" <frank@.discussions.microsoft.com> wrote in message
news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
> I setup Differntial Backup through EM but it doesn't
> work. The backup file added up 1G in every back up and
> end up with running out of space.
> Can anybody tell me what's wrong?
> Frank|||I do a complete backup once eveyday and differential
backup every 20 minutes, append to media.
I check all the setting of the differential backup in
Enterprise Manager and didn't find anything wrong.
Frank
>--Original Message--
>probably you are adding backup into existing backup over
and over, causing
>it increases until no more empty sapce. You need to
review your backup
>strategy.
>"Frank Jiang" <frank@.discussions.microsoft.com> wrote in
message
>news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
>> I setup Differntial Backup through EM but it doesn't
>> work. The backup file added up 1G in every back up and
>> end up with running out of space.
>> Can anybody tell me what's wrong?
>> Frank
>
>.
>|||with differential backup you don't have the option to restore DB to a
certain time.
Can you do differential backup every 4 hrs and do log backup every 20
minutes to a separate backup device? It may help.
"Frank J" <frank@.discussions.microsoft.com> wrote in message
news:330801c3e1da$b4ee92c0$a501280a@.phx.gbl...
> I do a complete backup once eveyday and differential
> backup every 20 minutes, append to media.
> I check all the setting of the differential backup in
> Enterprise Manager and didn't find anything wrong.
> Frank
> >--Original Message--
> >probably you are adding backup into existing backup over
> and over, causing
> >it increases until no more empty sapce. You need to
> review your backup
> >strategy.
> >
> >"Frank Jiang" <frank@.discussions.microsoft.com> wrote in
> message
> >news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
> >> I setup Differntial Backup through EM but it doesn't
> >> work. The backup file added up 1G in every back up and
> >> end up with running out of space.
> >>
> >> Can anybody tell me what's wrong?
> >>
> >> Frank
> >
> >
> >.
> >|||It never happened so far that we need to restore DB. But
theoretically, we can resote DB from a complete backup
and on top of that we do recover from differential
backup. Thats why we do a complete backup everyday and
followed by 20 minutes differential backup.
Transaction log is huge and should we backup it?
Frank
>--Original Message--
>with differential backup you don't have the option to
restore DB to a
>certain time.
>Can you do differential backup every 4 hrs and do log
backup every 20
>minutes to a separate backup device? It may help.
>
>"Frank J" <frank@.discussions.microsoft.com> wrote in
message
>news:330801c3e1da$b4ee92c0$a501280a@.phx.gbl...
>> I do a complete backup once eveyday and differential
>> backup every 20 minutes, append to media.
>> I check all the setting of the differential backup in
>> Enterprise Manager and didn't find anything wrong.
>> Frank
>> >--Original Message--
>> >probably you are adding backup into existing backup
over
>> and over, causing
>> >it increases until no more empty sapce. You need to
>> review your backup
>> >strategy.
>> >
>> >"Frank Jiang" <frank@.discussions.microsoft.com> wrote
in
>> message
>> >news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
>> >> I setup Differntial Backup through EM but it doesn't
>> >> work. The backup file added up 1G in every back up
and
>> >> end up with running out of space.
>> >>
>> >> Can anybody tell me what's wrong?
>> >>
>> >> Frank
>> >
>> >
>> >.
>> >
>
>.
>|||from BOL: A differential backup creates a copy of all the pages in a
database modified after the last database backup.
so to restore you just need a full backup and the last differential backup.
You keep adding differential backup into same backup device every 20 minutes
then no wonder it keeps growing 'til you are out of space.
> Transaction log is huge and should we backup it?
depend on your needs. I always backup the log.
"Frank J" <anonymous@.discussions.microsoft.com> wrote in message
news:2cbc01c3e1e7$7aef6470$a101280a@.phx.gbl...
> It never happened so far that we need to restore DB. But
> theoretically, we can resote DB from a complete backup
> and on top of that we do recover from differential
> backup. Thats why we do a complete backup everyday and
> followed by 20 minutes differential backup.
> Transaction log is huge and should we backup it?
> Frank
> >--Original Message--
> >with differential backup you don't have the option to
> restore DB to a
> >certain time.
> >Can you do differential backup every 4 hrs and do log
> backup every 20
> >minutes to a separate backup device? It may help.
> >
> >
> >"Frank J" <frank@.discussions.microsoft.com> wrote in
> message
> >news:330801c3e1da$b4ee92c0$a501280a@.phx.gbl...
> >> I do a complete backup once eveyday and differential
> >> backup every 20 minutes, append to media.
> >> I check all the setting of the differential backup in
> >> Enterprise Manager and didn't find anything wrong.
> >>
> >> Frank
> >>
> >> >--Original Message--
> >> >probably you are adding backup into existing backup
> over
> >> and over, causing
> >> >it increases until no more empty sapce. You need to
> >> review your backup
> >> >strategy.
> >> >
> >> >"Frank Jiang" <frank@.discussions.microsoft.com> wrote
> in
> >> message
> >> >news:2b6401c3e1d6$bbf8c6c0$a301280a@.phx.gbl...
> >> >> I setup Differntial Backup through EM but it doesn't
> >> >> work. The backup file added up 1G in every back up
> and
> >> >> end up with running out of space.
> >> >>
> >> >> Can anybody tell me what's wrong?
> >> >>
> >> >> Frank
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >sql

Differntial Backup

Question
How exactly does the technology of a differntial backup work. I have read
msdn articles, etc... But nothing states in particular how the technology
itself operates. It doesn't appear to use the log file.
Since it is a single file (No secondaries used) how can it create a
differential file of updates that have occured since the last full backup?
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
This posting is provided "AS IS" with no warranties or rights.
Paul
BOL says
differential database backup records only the data that has changed since
the last database backup. You can make more frequent backups because
differential database backups are smaller and faster than database backups.
Making frequent backups decreases your risk of losing data.

> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
The sequence for restoring differential database backups is:
1.. Restore the most recent database backup.
2.. Restore the last differential database backup.
3.. Apply all transaction log backups created after the last differential
database backup was created if you use Full or Bulk-Logged Recovery.
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.
|||The GAM (global allocation map) keeps track of which Extents have been
changed since the last full backup. Those are the ones written by a
differential backup.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.
|||This is exactly what I was looking for.
Thanks
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
This posting is provided "AS IS" with no warranties or rights.
"Geoff N. Hiten" wrote:

> The GAM (global allocation map) keeps track of which Extents have been
> changed since the last full backup. Those are the ones written by a
> differential backup.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
>
|||Actually it is the BCM (Bulk Changed Map) not the GAM but the same concept
applies. If a single bit on the extent was changed since the last full
backup this bit for that extent in the BCM will be flipped.
Andrew J. Kelly SQL MVP
"Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
news:%23NkgfLosHHA.1168@.TK2MSFTNGP02.phx.gbl...
> The GAM (global allocation map) keeps track of which Extents have been
> changed since the last full backup. Those are the ones written by a
> differential backup.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
>
|||A differential backup copies only the extents that were changed since the
last full backup was made. The extents are copied onto a specified backup
device.
SQL Server can quickly tell which extents need to be backed up by examining
the bits on the Differential Change Map DCM pages for each data file in the
database. DCM pages are big bitmaps, with one bit representing an extent in a
file, just like the GAM and SGAM pages.
Each time a full backup is made, all the bits in the DCM are cleared to 0.
When any page in an extent is changed, its corresponding bit in the DCM page
is changed to 1.
Manu
"Paul Bergson" wrote:
[vbcol=seagreen]
> This is exactly what I was looking for.
> Thanks
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.
>
> "Geoff N. Hiten" wrote:

Differntial Backup

Question
How exactly does the technology of a differntial backup work. I have read
msdn articles, etc... But nothing states in particular how the technology
itself operates. It doesn't appear to use the log file.
Since it is a single file (No secondaries used) how can it create a
differential file of updates that have occured since the last full backup?
--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
This posting is provided "AS IS" with no warranties or rights.Hi
have you seen this link
http://msdn2.microsoft.com/en-us/library/ms345448(SQL.90).aspx
Regards
VT
Knowledge is power, share it...
http://oneplace4sql.blogspot.com/
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.|||Paul
BOL says
differential database backup records only the data that has changed since
the last database backup. You can make more frequent backups because
differential database backups are smaller and faster than database backups.
Making frequent backups decreases your risk of losing data.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
The sequence for restoring differential database backups is:
1.. Restore the most recent database backup.
2.. Restore the last differential database backup.
3.. Apply all transaction log backups created after the last differential
database backup was created if you use Full or Bulk-Logged Recovery.
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.|||The GAM (global allocation map) keeps track of which Extents have been
changed since the last full backup. Those are the ones written by a
differential backup.
--
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.|||This is exactly what I was looking for.
Thanks
--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
This posting is provided "AS IS" with no warranties or rights.
"Geoff N. Hiten" wrote:
> The GAM (global allocation map) keeps track of which Extents have been
> changed since the last full backup. Those are the ones written by a
> differential backup.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> > Question
> >
> > How exactly does the technology of a differntial backup work. I have read
> > msdn articles, etc... But nothing states in particular how the technology
> > itself operates. It doesn't appear to use the log file.
> >
> > Since it is a single file (No secondaries used) how can it create a
> > differential file of updates that have occured since the last full backup?
> >
> > --
> > Paul Bergson
> > MVP - Directory Services
> > MCT, MCSE, MCSA, Security+, BS CSci
> > 2003, 2000 (Early Achiever), NT
> >
> > http://www.pbbergs.com
> >
> > This posting is provided "AS IS" with no warranties or rights.
>|||Actually it is the BCM (Bulk Changed Map) not the GAM but the same concept
applies. If a single bit on the extent was changed since the last full
backup this bit for that extent in the BCM will be flipped.
--
Andrew J. Kelly SQL MVP
"Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
news:%23NkgfLosHHA.1168@.TK2MSFTNGP02.phx.gbl...
> The GAM (global allocation map) keeps track of which Extents have been
> changed since the last full backup. Those are the ones written by a
> differential backup.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
>> Question
>> How exactly does the technology of a differntial backup work. I have
>> read
>> msdn articles, etc... But nothing states in particular how the technology
>> itself operates. It doesn't appear to use the log file.
>> Since it is a single file (No secondaries used) how can it create a
>> differential file of updates that have occured since the last full
>> backup?
>> --
>> Paul Bergson
>> MVP - Directory Services
>> MCT, MCSE, MCSA, Security+, BS CSci
>> 2003, 2000 (Early Achiever), NT
>> http://www.pbbergs.com
>> This posting is provided "AS IS" with no warranties or rights.
>|||A differential backup copies only the extents that were changed since the
last full backup was made. The extents are copied onto a specified backup
device.
SQL Server can quickly tell which extents need to be backed up by examining
the bits on the Differential Change Map DCM pages for each data file in the
database. DCM pages are big bitmaps, with one bit representing an extent in a
file, just like the GAM and SGAM pages.
Each time a full backup is made, all the bits in the DCM are cleared to 0.
When any page in an extent is changed, its corresponding bit in the DCM page
is changed to 1.
Manu
"Paul Bergson" wrote:
> This is exactly what I was looking for.
> Thanks
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.
>
> "Geoff N. Hiten" wrote:
> > The GAM (global allocation map) keeps track of which Extents have been
> > changed since the last full backup. Those are the ones written by a
> > differential backup.
> >
> > --
> > Geoff N. Hiten
> > Senior Database Administrator
> > Microsoft SQL Server MVP
> >
> >
> >
> >
> >
> > "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> > news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> > > Question
> > >
> > > How exactly does the technology of a differntial backup work. I have read
> > > msdn articles, etc... But nothing states in particular how the technology
> > > itself operates. It doesn't appear to use the log file.
> > >
> > > Since it is a single file (No secondaries used) how can it create a
> > > differential file of updates that have occured since the last full backup?
> > >
> > > --
> > > Paul Bergson
> > > MVP - Directory Services
> > > MCT, MCSE, MCSA, Security+, BS CSci
> > > 2003, 2000 (Early Achiever), NT
> > >
> > > http://www.pbbergs.com
> > >
> > > This posting is provided "AS IS" with no warranties or rights.
> >
> >

Differntial Backup

Question
How exactly does the technology of a differntial backup work. I have read
msdn articles, etc... But nothing states in particular how the technology
itself operates. It doesn't appear to use the log file.
Since it is a single file (No secondaries used) how can it create a
differential file of updates that have occured since the last full backup?
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
This posting is provided "AS IS" with no warranties or rights.Hi
have you seen this link
http://msdn2.microsoft.com/en-us/library/ms345448(SQL.90).aspx
Regards
VT
Knowledge is power, share it...
http://oneplace4sql.blogspot.com/
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.|||Paul
BOL says
differential database backup records only the data that has changed since
the last database backup. You can make more frequent backups because
differential database backups are smaller and faster than database backups.
Making frequent backups decreases your risk of losing data.

> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
The sequence for restoring differential database backups is:
1.. Restore the most recent database backup.
2.. Restore the last differential database backup.
3.. Apply all transaction log backups created after the last differential
database backup was created if you use Full or Bulk-Logged Recovery.
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.|||The GAM (global allocation map) keeps track of which Extents have been
changed since the last full backup. Those are the ones written by a
differential backup.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
> Question
> How exactly does the technology of a differntial backup work. I have read
> msdn articles, etc... But nothing states in particular how the technology
> itself operates. It doesn't appear to use the log file.
> Since it is a single file (No secondaries used) how can it create a
> differential file of updates that have occured since the last full backup?
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.|||This is exactly what I was looking for.
Thanks
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
This posting is provided "AS IS" with no warranties or rights.
"Geoff N. Hiten" wrote:

> The GAM (global allocation map) keeps track of which Extents have been
> changed since the last full backup. Those are the ones written by a
> differential backup.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
>|||Actually it is the BCM (Bulk Changed Map) not the GAM but the same concept
applies. If a single bit on the extent was changed since the last full
backup this bit for that extent in the BCM will be flipped.
Andrew J. Kelly SQL MVP
"Geoff N. Hiten" <SQLCraftsman@.gmail.com> wrote in message
news:%23NkgfLosHHA.1168@.TK2MSFTNGP02.phx.gbl...
> The GAM (global allocation map) keeps track of which Extents have been
> changed since the last full backup. Those are the ones written by a
> differential backup.
> --
> Geoff N. Hiten
> Senior Database Administrator
> Microsoft SQL Server MVP
>
>
> "Paul Bergson" <pbergson@.allete.com.invalid> wrote in message
> news:B8054281-37AA-493B-977F-F345404260BD@.microsoft.com...
>|||A differential backup copies only the extents that were changed since the
last full backup was made. The extents are copied onto a specified backup
device.
SQL Server can quickly tell which extents need to be backed up by examining
the bits on the Differential Change Map DCM pages for each data file in the
database. DCM pages are big bitmaps, with one bit representing an extent in
a
file, just like the GAM and SGAM pages.
Each time a full backup is made, all the bits in the DCM are cleared to 0.
When any page in an extent is changed, its corresponding bit in the DCM page
is changed to 1.
Manu
"Paul Bergson" wrote:
[vbcol=seagreen]
> This is exactly what I was looking for.
> Thanks
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
> http://www.pbbergs.com
> This posting is provided "AS IS" with no warranties or rights.
>
> "Geoff N. Hiten" wrote:
>