Showing posts with label restore. Show all posts
Showing posts with label restore. Show all posts

Monday, March 19, 2012

Differential restore

Yes I did restored with norecovery. I also have SP3 loaded
and have tried to do the restore both through Enterprise
Manager and the Query Analyzer. Both worked until
recently. I have made no changes to the either the
configuration or the database. this is crazy
Thanks for any help you can give me.
jeff
quote:

>--Original Message--
>Did you restore the full backup with NORECOVERY? If not,

re-restore with
quote:

>this option.
>--
>Tom
>----

--
quote:

>Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
>SQL Server MVP
>Columnist, SQL Server Professional
>Toronto, ON Canada
>www.pinnaclepublishing.com/sql
>
>"Jeff Timmerman" <anonymous@.discussions.microsoft.com>

wrote in message
quote:

>news:0a0801c3d620$25f35f30$a001280a@.phx.gbl...
>I can no longer restore a differential backup after
>restoring the fullbackup. I found the microsoft work
>around that says to do the restore throught the Query
>Analizer but that doesn't work either. Does anyone know
>how i cna fix this problem?
>
Just wondering about corruption here. Can you try backing up Northwind -
full and differential, plus a couple of txn logs, then restore them all? If
that fails, it could be a SQL Server problem. If it succeeds, it's your
original backups.
Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Jeff Timmerman" <anonymous@.discussions.microsoft.com> wrote in message
news:0ca701c3d6cd$9aa7bdf0$a501280a@.phx.gbl...
Yes I did restored with norecovery. I also have SP3 loaded
and have tried to do the restore both through Enterprise
Manager and the Query Analyzer. Both worked until
recently. I have made no changes to the either the
configuration or the database. this is crazy
Thanks for any help you can give me.
jeff
quote:

>--Original Message--
>Did you restore the full backup with NORECOVERY? If not,

re-restore with
quote:

>this option.
>--
>Tom
>----

--
quote:

>Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
>SQL Server MVP
>Columnist, SQL Server Professional
>Toronto, ON Canada
>www.pinnaclepublishing.com/sql
>
>"Jeff Timmerman" <anonymous@.discussions.microsoft.com>

wrote in message
quote:

>news:0a0801c3d620$25f35f30$a001280a@.phx.gbl...
>I can no longer restore a differential backup after
>restoring the fullbackup. I found the microsoft work
>around that says to do the restore throught the Query
>Analizer but that doesn't work either. Does anyone know
>how i cna fix this problem?
>

Differential Restore

Win2K3 SQL2K Enterprise Edition
This is my current backup schedule
Sunday FULL
M-Sat Differential
TranLogs Backups every hour
I am trying to restore to a point in time, specifically to the time
right after my last Differentail backup. I am using Ent Manager for
this. I have restored the Full with no recovery and then I select just
the last Differential Backup for restore and I get the message
Cannot apply the backup on device 'd:\abcd\diff' to database 'TEST'
restore database is terminated abnormally
Is there something wrong with my restore process. This is a qa
environment that I am testing this on. I have added a lot of data to
the database and then manual run the diffential job. Now I am trying
to restore to this point but I keep getting this error. Any help would
be appreciated.Please check the backup file you are using.
Thanks
Ajay Rengunthwar|||Ajay, Not sure what you mean exactly. I was able to restore my last
full backup. Both with and without recovery. I am just having trouble
restoring the differentials backup after that.

Differential Restore

Win2K3 SQL2K Enterprise Edition
This is my current backup schedule
Sunday FULL
M-Sat Differential
TranLogs Backups every hour
I am trying to restore to a point in time, specifically to the time
right after my last Differentail backup. I am using Ent Manager for
this. I have restored the Full with no recovery and then I select just
the last Differential Backup for restore and I get the message
Cannot apply the backup on device 'd:\abcd\diff' to database 'TEST'
restore database is terminated abnormally
Is there something wrong with my restore process. This is a qa
environment that I am testing this on. I have added a lot of data to
the database and then manual run the diffential job. Now I am trying
to restore to this point but I keep getting this error. Any help would
be appreciated.Please check the backup file you are using.
Thanks
Ajay Rengunthwar|||Ajay, Not sure what you mean exactly. I was able to restore my last
full backup. Both with and without recovery. I am just having trouble
restoring the differentials backup after that.

Differential restore

I can no longer restore a differential backup after
restoring the fullbackup. I found the microsoft work
around that says to do the restore throught the Query
Analizer but that doesn't work either. Does anyone know
how i cna fix this problem?This is a multi-part message in MIME format.
--=_NextPart_000_0372_01C3D5F8.5D023FA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Did you restore the full backup with NORECOVERY? If not, re-restore with
this option.
--
Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Jeff Timmerman" <anonymous@.discussions.microsoft.com> wrote in message
news:0a0801c3d620$25f35f30$a001280a@.phx.gbl...
I can no longer restore a differential backup after
restoring the fullbackup. I found the microsoft work
around that says to do the restore throught the Query
Analizer but that doesn't work either. Does anyone know
how i cna fix this problem?
--=_NextPart_000_0372_01C3D5F8.5D023FA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Did you restore the full backup with NORECOVERY? If not, re-restore with this option.
-- Tom
---T=homas A. Moreau, BSc, PhD, MCSE, MCDBASQL Server MVPColumnist, SQL =Server ProfessionalToronto, ON Canadahttp://www.pinnaclepublishing.com/sql">www.pinnaclepublishing.com=/sql
"Jeff Timmerman" wrote in message news:0a0801c3d620$25=f35f30$a001280a@.phx.gbl...I can no longer restore a differential backup after restoring the =fullbackup. I found the microsoft work around that says to do the restore =throught the Query Analizer but that doesn't work either. Does anyone know =how i cna fix this problem?

--=_NextPart_000_0372_01C3D5F8.5D023FA0--|||Yes I did restored with norecovery. I also have SP3 loaded
and have tried to do the restore both through Enterprise
Manager and the Query Analyzer. Both worked until
recently. I have made no changes to the either the
configuration or the database. this is crazy
Thanks for any help you can give me.
jeff
>--Original Message--
>Did you restore the full backup with NORECOVERY? If not,
re-restore with
>this option.
>--
>Tom
>----
--
>Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
>SQL Server MVP
>Columnist, SQL Server Professional
>Toronto, ON Canada
>www.pinnaclepublishing.com/sql
>
>"Jeff Timmerman" <anonymous@.discussions.microsoft.com>
wrote in message
>news:0a0801c3d620$25f35f30$a001280a@.phx.gbl...
>I can no longer restore a differential backup after
>restoring the fullbackup. I found the microsoft work
>around that says to do the restore throught the Query
>Analizer but that doesn't work either. Does anyone know
>how i cna fix this problem?
>|||This is a multi-part message in MIME format.
--=_NextPart_000_017E_01C3D6A7.28C09CA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Just wondering about corruption here. Can you try backing up Northwind -
full and differential, plus a couple of txn logs, then restore them all? If
that fails, it could be a SQL Server problem. If it succeeds, it's your
original backups.
--
Tom
---
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com/sql
"Jeff Timmerman" <anonymous@.discussions.microsoft.com> wrote in message
news:0ca701c3d6cd$9aa7bdf0$a501280a@.phx.gbl...
Yes I did restored with norecovery. I also have SP3 loaded
and have tried to do the restore both through Enterprise
Manager and the Query Analyzer. Both worked until
recently. I have made no changes to the either the
configuration or the database. this is crazy
Thanks for any help you can give me.
jeff
>--Original Message--
>Did you restore the full backup with NORECOVERY? If not,
re-restore with
>this option.
>--
>Tom
>----
--
>Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
>SQL Server MVP
>Columnist, SQL Server Professional
>Toronto, ON Canada
>www.pinnaclepublishing.com/sql
>
>"Jeff Timmerman" <anonymous@.discussions.microsoft.com>
wrote in message
>news:0a0801c3d620$25f35f30$a001280a@.phx.gbl...
>I can no longer restore a differential backup after
>restoring the fullbackup. I found the microsoft work
>around that says to do the restore throught the Query
>Analizer but that doesn't work either. Does anyone know
>how i cna fix this problem?
>
--=_NextPart_000_017E_01C3D6A7.28C09CA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
&

Just wondering about corruption =here. Can you try backing up Northwind - full and differential, plus a couple of =txn logs, then restore them all? If that fails, it could be a SQL Server problem. If it succeeds, it's your original backups.
-- Tom
---T=homas A. Moreau, BSc, PhD, MCSE, MCDBASQL Server MVPColumnist, SQL =Server ProfessionalToronto, ON Canadahttp://www.pinnaclepublishing.com/sql">www.pinnaclepublishing.com=/sql
"Jeff Timmerman" wrote in message news:0ca701c3d6cd$9a=a7bdf0$a501280a@.phx.gbl...Yes I did restored with norecovery. I also have SP3 loaded and have =tried to do the restore both through Enterprise Manager and the Query =Analyzer. Both worked until recently. I have made no changes to the =either the configuration or the database. this is crazyThanks for any =help you can give me.jeff>--Original Message-->Did =you restore the full backup with NORECOVERY? If not, re-restore with>this option.>>-->Tom>>--=---->Thomas A. Moreau, BSc, PhD, MCSE, MCDBA>SQL Server MVP>Columnist, =SQL Server Professional>Toronto, ON Canada>www.pinnaclepublishing.com/sql>>>"Jeff= Timmerman" wrote in message>news:0a0801c3d620$25f35f30$a001280a@.phx.gbl...>I =can no longer restore a differential backup after>restoring the =fullbackup. I found the microsoft work>around that says to do the restore =throught the Query>Analizer but that doesn't work either. Does anyone know>how i cna fix this problem?>

--=_NextPart_000_017E_01C3D6A7.28C09CA0--

Differential DB Restore Script Help

I am trying to restore a differential backup on top of the
restored full backup and getting the following error:
Server: Msg 3136, Level 16, State 1, Line 1
Cannot apply the backup on device 'F:\HISTORY backup.BAK'
to database 'HISTORY'.
Server: Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.
Here is my script:
RESTORE DATABASE HISTORY
FROM DISK = 'F:\HISTORY backup.BAK'
WITH
DBO_ONLY,
REPLACE,
STANDBY = 'F:\UNDO_WPHISTORY.ldf',
MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft SQL
Server\MSSQL\Data\WPHISTORY_dat1.mdf',
MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft SQL
Server\MSSQL\Data\HISTORY_log1.ldf'
---
I am thinking that it has something to do with backup
date/time.
Any help will be appreciated.Use RESTORE HEADERONLY to investigate what is on the backup files. Also,
check the sysbackuphistory tables in msdb to determine if you had any db
backup in between the db and diff backup you try to restore.
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"calvin" <anonymous@.discussions.microsoft.com> wrote in message
news:018101c3a7c9$442a16e0$a501280a@.phx.gbl...
> I am trying to restore a differential backup on top of the
> restored full backup and getting the following error:
> Server: Msg 3136, Level 16, State 1, Line 1
> Cannot apply the backup on device 'F:\HISTORY backup.BAK'
> to database 'HISTORY'.
> Server: Msg 3013, Level 16, State 1, Line 1
> RESTORE DATABASE is terminating abnormally.
> Here is my script:
> RESTORE DATABASE HISTORY
> FROM DISK = 'F:\HISTORY backup.BAK'
> WITH
> DBO_ONLY,
> REPLACE,
> STANDBY = 'F:\UNDO_WPHISTORY.ldf',
> MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft SQL
> Server\MSSQL\Data\WPHISTORY_dat1.mdf',
> MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft SQL
> Server\MSSQL\Data\HISTORY_log1.ldf'
> ---
> I am thinking that it has something to do with backup
> date/time.
> Any help will be appreciated.
>|||Yes. There are Transaction log backups between the Full
backup anf the Differential backup (Differential backup is
the latest).
>--Original Message--
>Use RESTORE HEADERONLY to investigate what is on the
backup files. Also,
>check the sysbackuphistory tables in msdb to determine if
you had any db
>backup in between the db and diff backup you try to
restore.
>--
>Tibor Karaszi, SQL Server MVP
>Archive at:
>http://groups.google.com/groups?
oi=djq&as_ugroup=microsoft.public.sqlserver
>
>"calvin" <anonymous@.discussions.microsoft.com> wrote in
message
>news:018101c3a7c9$442a16e0$a501280a@.phx.gbl...
>> I am trying to restore a differential backup on top of
the
>> restored full backup and getting the following error:
>> Server: Msg 3136, Level 16, State 1, Line 1
>> Cannot apply the backup on device 'F:\HISTORY
backup.BAK'
>> to database 'HISTORY'.
>> Server: Msg 3013, Level 16, State 1, Line 1
>> RESTORE DATABASE is terminating abnormally.
>> Here is my script:
>> RESTORE DATABASE HISTORY
>> FROM DISK = 'F:\HISTORY backup.BAK'
>> WITH
>> DBO_ONLY,
>> REPLACE,
>> STANDBY = 'F:\UNDO_WPHISTORY.ldf',
>> MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft SQL
>> Server\MSSQL\Data\WPHISTORY_dat1.mdf',
>> MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft SQL
>> Server\MSSQL\Data\HISTORY_log1.ldf'
>> ---
>> I am thinking that it has something to do with backup
>> date/time.
>> Any help will be appreciated.
>>
>
>.
>|||Silly ? but did you use the right full backup? You can
only apply a differential to its proper full.
>--Original Message--
>Yes. There are Transaction log backups between the Full
>backup anf the Differential backup (Differential backup
is
>the latest).
>
>>--Original Message--
>>Use RESTORE HEADERONLY to investigate what is on the
>backup files. Also,
>>check the sysbackuphistory tables in msdb to determine
if
>you had any db
>>backup in between the db and diff backup you try to
>restore.
>>--
>>Tibor Karaszi, SQL Server MVP
>>Archive at:
>>http://groups.google.com/groups?
>oi=djq&as_ugroup=microsoft.public.sqlserver
>>
>>"calvin" <anonymous@.discussions.microsoft.com> wrote in
>message
>>news:018101c3a7c9$442a16e0$a501280a@.phx.gbl...
>> I am trying to restore a differential backup on top of
>the
>> restored full backup and getting the following error:
>> Server: Msg 3136, Level 16, State 1, Line 1
>> Cannot apply the backup on device 'F:\HISTORY
>backup.BAK'
>> to database 'HISTORY'.
>> Server: Msg 3013, Level 16, State 1, Line 1
>> RESTORE DATABASE is terminating abnormally.
>> Here is my script:
>> RESTORE DATABASE HISTORY
>> FROM DISK = 'F:\HISTORY backup.BAK'
>> WITH
>> DBO_ONLY,
>> REPLACE,
>> STANDBY = 'F:\UNDO_WPHISTORY.ldf',
>> MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft SQL
>> Server\MSSQL\Data\WPHISTORY_dat1.mdf',
>> MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft SQL
>> Server\MSSQL\Data\HISTORY_log1.ldf'
>> ---
>> I am thinking that it has something to do with backup
>> date/time.
>> Any help will be appreciated.
>>
>>
>>.
>.
>|||I wasn't referring to t-log backups between the db and the diff backup. I
was referring to *db backups* between the db backup you try to restore and
the diff backup you try to restore.
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Calvin" <anonymous@.discussions.microsoft.com> wrote in message
news:022b01c3a7d1$b509aee0$a501280a@.phx.gbl...
> Yes. There are Transaction log backups between the Full
> backup anf the Differential backup (Differential backup is
> the latest).
>
> >--Original Message--
> >Use RESTORE HEADERONLY to investigate what is on the
> backup files. Also,
> >check the sysbackuphistory tables in msdb to determine if
> you had any db
> >backup in between the db and diff backup you try to
> restore.
> >
> >--
> >Tibor Karaszi, SQL Server MVP
> >Archive at:
> >http://groups.google.com/groups?
> oi=djq&as_ugroup=microsoft.public.sqlserver
> >
> >
> >"calvin" <anonymous@.discussions.microsoft.com> wrote in
> message
> >news:018101c3a7c9$442a16e0$a501280a@.phx.gbl...
> >> I am trying to restore a differential backup on top of
> the
> >> restored full backup and getting the following error:
> >>
> >> Server: Msg 3136, Level 16, State 1, Line 1
> >> Cannot apply the backup on device 'F:\HISTORY
> backup.BAK'
> >> to database 'HISTORY'.
> >> Server: Msg 3013, Level 16, State 1, Line 1
> >> RESTORE DATABASE is terminating abnormally.
> >>
> >> Here is my script:
> >> RESTORE DATABASE HISTORY
> >> FROM DISK = 'F:\HISTORY backup.BAK'
> >> WITH
> >> DBO_ONLY,
> >> REPLACE,
> >> STANDBY = 'F:\UNDO_WPHISTORY.ldf',
> >> MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft SQL
> >> Server\MSSQL\Data\WPHISTORY_dat1.mdf',
> >> MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft SQL
> >> Server\MSSQL\Data\HISTORY_log1.ldf'
> >> ---
> >> I am thinking that it has something to do with backup
> >> date/time.
> >>
> >> Any help will be appreciated.
> >>
> >>
> >
> >
> >.
> >|||No. There is no database backups between the last full
backup which I restored and the differential backup.
and for Allen, yes it is the correct full backup.
Thanks.
>--Original Message--
>I wasn't referring to t-log backups between the db and
the diff backup. I
>was referring to *db backups* between the db backup you
try to restore and
>the diff backup you try to restore.
>--
>Tibor Karaszi, SQL Server MVP
>Archive at:
>http://groups.google.com/groups?
oi=djq&as_ugroup=microsoft.public.sqlserver
>
>"Calvin" <anonymous@.discussions.microsoft.com> wrote in
message
>news:022b01c3a7d1$b509aee0$a501280a@.phx.gbl...
>> Yes. There are Transaction log backups between the Full
>> backup anf the Differential backup (Differential backup
is
>> the latest).
>>
>> >--Original Message--
>> >Use RESTORE HEADERONLY to investigate what is on the
>> backup files. Also,
>> >check the sysbackuphistory tables in msdb to determine
if
>> you had any db
>> >backup in between the db and diff backup you try to
>> restore.
>> >
>> >--
>> >Tibor Karaszi, SQL Server MVP
>> >Archive at:
>> >http://groups.google.com/groups?
>> oi=djq&as_ugroup=microsoft.public.sqlserver
>> >
>> >
>> >"calvin" <anonymous@.discussions.microsoft.com> wrote in
>> message
>> >news:018101c3a7c9$442a16e0$a501280a@.phx.gbl...
>> >> I am trying to restore a differential backup on top
of
>> the
>> >> restored full backup and getting the following error:
>> >>
>> >> Server: Msg 3136, Level 16, State 1, Line 1
>> >> Cannot apply the backup on device 'F:\HISTORY
>> backup.BAK'
>> >> to database 'HISTORY'.
>> >> Server: Msg 3013, Level 16, State 1, Line 1
>> >> RESTORE DATABASE is terminating abnormally.
>> >>
>> >> Here is my script:
>> >> RESTORE DATABASE HISTORY
>> >> FROM DISK = 'F:\HISTORY backup.BAK'
>> >> WITH
>> >> DBO_ONLY,
>> >> REPLACE,
>> >> STANDBY = 'F:\UNDO_WPHISTORY.ldf',
>> >> MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft
SQL
>> >> Server\MSSQL\Data\WPHISTORY_dat1.mdf',
>> >> MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft
SQL
>> >> Server\MSSQL\Data\HISTORY_log1.ldf'
>> >> ----
-
>> >> I am thinking that it has something to do with backup
>> >> date/time.
>> >>
>> >> Any help will be appreciated.
>> >>
>> >>
>> >
>> >
>> >.
>> >
>
>.
>|||Are you absolutely 100% certain? Did you check against the sysbackuphistory
tables in msdb?
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Calvin" <anonymous@.discussions.microsoft.com> wrote in message
news:02c601c3a7da$1371a570$a501280a@.phx.gbl...
> No. There is no database backups between the last full
> backup which I restored and the differential backup.
> and for Allen, yes it is the correct full backup.
> Thanks.
>
> >--Original Message--
> >I wasn't referring to t-log backups between the db and
> the diff backup. I
> >was referring to *db backups* between the db backup you
> try to restore and
> >the diff backup you try to restore.
> >
> >--
> >Tibor Karaszi, SQL Server MVP
> >Archive at:
> >http://groups.google.com/groups?
> oi=djq&as_ugroup=microsoft.public.sqlserver
> >
> >
> >"Calvin" <anonymous@.discussions.microsoft.com> wrote in
> message
> >news:022b01c3a7d1$b509aee0$a501280a@.phx.gbl...
> >> Yes. There are Transaction log backups between the Full
> >> backup anf the Differential backup (Differential backup
> is
> >> the latest).
> >>
> >>
> >>
> >> >--Original Message--
> >> >Use RESTORE HEADERONLY to investigate what is on the
> >> backup files. Also,
> >> >check the sysbackuphistory tables in msdb to determine
> if
> >> you had any db
> >> >backup in between the db and diff backup you try to
> >> restore.
> >> >
> >> >--
> >> >Tibor Karaszi, SQL Server MVP
> >> >Archive at:
> >> >http://groups.google.com/groups?
> >> oi=djq&as_ugroup=microsoft.public.sqlserver
> >> >
> >> >
> >> >"calvin" <anonymous@.discussions.microsoft.com> wrote in
> >> message
> >> >news:018101c3a7c9$442a16e0$a501280a@.phx.gbl...
> >> >> I am trying to restore a differential backup on top
> of
> >> the
> >> >> restored full backup and getting the following error:
> >> >>
> >> >> Server: Msg 3136, Level 16, State 1, Line 1
> >> >> Cannot apply the backup on device 'F:\HISTORY
> >> backup.BAK'
> >> >> to database 'HISTORY'.
> >> >> Server: Msg 3013, Level 16, State 1, Line 1
> >> >> RESTORE DATABASE is terminating abnormally.
> >> >>
> >> >> Here is my script:
> >> >> RESTORE DATABASE HISTORY
> >> >> FROM DISK = 'F:\HISTORY backup.BAK'
> >> >> WITH
> >> >> DBO_ONLY,
> >> >> REPLACE,
> >> >> STANDBY = 'F:\UNDO_WPHISTORY.ldf',
> >> >> MOVE 'HISTORY_dat1' TO 'E:\Program Files\Microsoft
> SQL
> >> >> Server\MSSQL\Data\WPHISTORY_dat1.mdf',
> >> >> MOVE 'HISTORY_log1' TO 'E:\Program Files\Microsoft
> SQL
> >> >> Server\MSSQL\Data\HISTORY_log1.ldf'
> >> >> ----
> -
> >> >> I am thinking that it has something to do with backup
> >> >> date/time.
> >> >>
> >> >> Any help will be appreciated.
> >> >>
> >> >>
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >

differential database backup

Hi,
How sql server keep track of what modified since last full
database backup while taking differential database backup?
I checked Backup/Restore Architecture in books online, no
luck.
Please reply.
Ram.the super short answer is that SQL Server has some interenal meta data that
allows it to track which extents have been changed since the last
differential. The next differential just reads that map and backs up those
extents...
the best source for info like this is Kalen Delaney's Inside MS SQL Server
2000....
--
Brian Moran
Principal Mentor
Solid Quality Learning
SQL Server MVP
http://www.solidqualitylearning.com
"Ram" <mail_info@.rediffmail.com> wrote in message
news:03ed01c3517e$e2f21170$a601280a@.phx.gbl...
> Hi,
> How sql server keep track of what modified since last full
> database backup while taking differential database backup?
> I checked Backup/Restore Architecture in books online, no
> luck.
> Please reply.
> Ram.

Sunday, March 11, 2012

Differential backup/restore

Hello,
If this sounds like a stupid question I apologize in advance but I'm using
Simple model and do a Full backup 6am daily and then hourly Differentials.
If I need to restore to 9am do I need to restore Full and then all the
Differentials 7, 8, and 9 or do I just need to restore Full and 9am? Does
each Differential include all the changes since the Full backup or from
since the last backup whatever it was, full or differential?
Thank you
Brian Morris
You restore the most recent db backup and then the most recent dif backup. In your example, the 6am
db backup and then the 9am diff backup. You might want to consider doing log backups instead of or
to complement your diff backups. Log backups has advantages that diff backups don't have (point in
time restore, doing backup of a corrupt database etc).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Brian" <s@.y> wrote in message news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
> Hello,
> If this sounds like a stupid question I apologize in advance but I'm using Simple model and do a
> Full backup 6am daily and then hourly Differentials. If I need to restore to 9am do I need to
> restore Full and then all the Differentials 7, 8, and 9 or do I just need to restore Full and 9am?
> Does each Differential include all the changes since the Full backup or from since the last backup
> whatever it was, full or differential?
> Thank you
> Brian Morris
>
|||Hi Brian,
To add on to Tibor, If it is a production server it is recommeneded to set
the database recovery model to FULL and have Transaction log backups
in regular frequencies (Say 15 minutes or so). THis will help you to recover
the database POINT_IN_TIME.
Thanks
Hari
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
> You restore the most recent db backup and then the most recent dif backup.
> In your example, the 6am db backup and then the 9am diff backup. You might
> want to consider doing log backups instead of or to complement your diff
> backups. Log backups has advantages that diff backups don't have (point in
> time restore, doing backup of a corrupt database etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>
|||OK, so it is really only the last diff that I need so that I can use
overwrite instead of append when I'm doing those.
I thought that with Simple recovery you don't do log backups?
Thank you
Brian Morris
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
> You restore the most recent db backup and then the most recent dif backup.
> In your example, the 6am db backup and then the 9am diff backup. You might
> want to consider doing log backups instead of or to complement your diff
> backups. Log backups has advantages that diff backups don't have (point in
> time restore, doing backup of a corrupt database etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>
|||Someone had suggested that Simple with diff backups every hour or halfhour
would be what I needed. When it came it was set to Full. I was not doing
any log backups, just 2 daily complete db backups and the log was getting
huge. The amount of work that would have to be done over in an hour would
not be too much and the recovery process sounded much more straight forward.
I will look at what you suggest.
Thanks
Brian Morris
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:OjOUr1peHHA.4868@.TK2MSFTNGP06.phx.gbl...
> Hi Brian,
> To add on to Tibor, If it is a production server it is recommeneded to set
> the database recovery model to FULL and have Transaction log backups
> in regular frequencies (Say 15 minutes or so). THis will help you to
> recover the database POINT_IN_TIME.
> Thanks
> Hari
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
> in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>
|||> OK, so it is really only the last diff that I need so that I can use
> overwrite instead of append when I'm doing those.
Correct.

> I thought that with Simple recovery you don't do log backups?
Correct. But my thought was that you could run full or bulk logged and do log backups.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Brian" <s@.y> wrote in message news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
> OK, so it is really only the last diff that I need so that I can use
> overwrite instead of append when I'm doing those.
> I thought that with Simple recovery you don't do log backups?
> Thank you
> Brian Morris
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>
|||I'm looking at that now but I'm not sure how much more effective it could
be. We don't have all those fancy fault tolerant setups, so I'm thinking
that if the drive with my log backups fails too I will still have to go to
the tape which would be an hour old.
Our set up is -
db on disk-1
log on disk-2
diff backups to a folder on log disk every hour (or 15 mins for logs as you
suggest with Full)
ntbackup folder to tape every hour
Thanks
Brian Morris
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...[vbcol=seagreen]
> Correct.
>
> Correct. But my thought was that you could run full or bulk logged and do
> log backups.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
|||"Brian" <s@.y> wrote in message news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
> I'm looking at that now but I'm not sure how much more effective it could
> be. We don't have all those fancy fault tolerant setups, so I'm thinking
> that if the drive with my log backups fails too I will still have to go to
> the tape which would be an hour old.
> Our set up is -
> db on disk-1
> log on disk-2
> diff backups to a folder on log disk every hour (or 15 mins for logs as
> you suggest with Full)
> ntbackup folder to tape every hour
I'd at the very least do your backups to a network share. You have too many
eggs in one basket.
And I think what Tibor is getting at is if you're doing diff's this often,
you might as well go ahead with a FULL recovery model and use transaction
log backups. This gives you more recovery options.
For example, right now if your DB disk dies, the best you can do is replace
and restore the full and diff backups. So you'll lose work.
If you are in full recovery mode and your DB disk dies, you can restore the
FULL, the DIFF and any subsequent log backups. (And if you back up the "tail
of the log", you can restore to the point of failure.
However, right now if your log disk fails, you're out of luck with restoring
because your backups are there.
As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
getting cheaper and cheaper every day. Might be well worth reconsidering.

> Thanks
> Brian Morris
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
> in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
|||Hmm, it looks like I've got a lot to think about.
I agree about the all in one basket which is why we wanted the hourly
backups.
I'm not too keen on the backup to network share, I was doing that for
something else and every so often there was a blip in the connection and the
backup failed and we have never been able to figure out the blip.
The Full with log backups does make more sense when you comapre the optins.
I'll have to try it to see how it imapacts things.
Thanks
Brian Morris
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>
> "Brian" <s@.y> wrote in message
> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
> I'd at the very least do your backups to a network share. You have too
> many eggs in one basket.
> And I think what Tibor is getting at is if you're doing diff's this often,
> you might as well go ahead with a FULL recovery model and use transaction
> log backups. This gives you more recovery options.
> For example, right now if your DB disk dies, the best you can do is
> replace and restore the full and diff backups. So you'll lose work.
> If you are in full recovery mode and your DB disk dies, you can restore
> the FULL, the DIFF and any subsequent log backups. (And if you back up the
> "tail of the log", you can restore to the point of failure.
> However, right now if your log disk fails, you're out of luck with
> restoring because your backups are there.
> As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
> getting cheaper and cheaper every day. Might be well worth reconsidering.
>
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com
> http://www.greenms.com/sqlserver.html
>
|||One last question/observation
I'm reading that I have to restore all the log backups as opposed to just
the last diff backup.
If I were to lose one of the in between log backups I would be way worse off
than if I lost one of the in between diff backups, would I not?
Any way around this?
Thanks
Brian Morris
"Brian" <s@.y> wrote in message
news:%23HbumBueHHA.4128@.TK2MSFTNGP05.phx.gbl...
> Hmm, it looks like I've got a lot to think about.
> I agree about the all in one basket which is why we wanted the hourly
> backups.
> I'm not too keen on the backup to network share, I was doing that for
> something else and every so often there was a blip in the connection and
> the backup failed and we have never been able to figure out the blip.
> The Full with log backups does make more sense when you comapre the
> optins. I'll have to try it to see how it imapacts things.
> Thanks
> Brian Morris
> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
> message news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>

Differential backup/restore

Hello,
If this sounds like a stupid question I apologize in advance but I'm using
Simple model and do a Full backup 6am daily and then hourly Differentials.
If I need to restore to 9am do I need to restore Full and then all the
Differentials 7, 8, and 9 or do I just need to restore Full and 9am? Does
each Differential include all the changes since the Full backup or from
since the last backup whatever it was, full or differential?
Thank you
Brian MorrisYou restore the most recent db backup and then the most recent dif backup. I
n your example, the 6am
db backup and then the 9am diff backup. You might want to consider doing log
backups instead of or
to complement your diff backups. Log backups has advantages that diff backup
s don't have (point in
time restore, doing backup of a corrupt database etc).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Brian" <s@.y> wrote in message news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...n">
> Hello,
> If this sounds like a stupid question I apologize in advance but I'm usin
g Simple model and do a
> Full backup 6am daily and then hourly Differentials. If I need to restore
to 9am do I need to
> restore Full and then all the Differentials 7, 8, and 9 or do I just need
to restore Full and 9am?
> Does each Differential include all the changes since the Full backup or fr
om since the last backup
> whatever it was, full or differential?
> Thank you
> Brian Morris
>|||Hi Brian,
To add on to Tibor, If it is a production server it is recommeneded to set
the database recovery model to FULL and have Transaction log backups
in regular frequencies (Say 15 minutes or so). THis will help you to recover
the database POINT_IN_TIME.
Thanks
Hari
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
> You restore the most recent db backup and then the most recent dif backup.
> In your example, the 6am db backup and then the 9am diff backup. You might
> want to consider doing log backups instead of or to complement your diff
> backups. Log backups has advantages that diff backups don't have (point in
> time restore, doing backup of a corrupt database etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>|||OK, so it is really only the last diff that I need so that I can use
overwrite instead of append when I'm doing those.
I thought that with Simple recovery you don't do log backups?
Thank you
Brian Morris
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
> You restore the most recent db backup and then the most recent dif backup.
> In your example, the 6am db backup and then the 9am diff backup. You might
> want to consider doing log backups instead of or to complement your diff
> backups. Log backups has advantages that diff backups don't have (point in
> time restore, doing backup of a corrupt database etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>|||Someone had suggested that Simple with diff backups every hour or halfhour
would be what I needed. When it came it was set to Full. I was not doing
any log backups, just 2 daily complete db backups and the log was getting
huge. The amount of work that would have to be done over in an hour would
not be too much and the recovery process sounded much more straight forward.
I will look at what you suggest.
Thanks
Brian Morris
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:OjOUr1peHHA.4868@.TK2MSFTNGP06.phx.gbl...
> Hi Brian,
> To add on to Tibor, If it is a production server it is recommeneded to set
> the database recovery model to FULL and have Transaction log backups
> in regular frequencies (Say 15 minutes or so). THis will help you to
> recover the database POINT_IN_TIME.
> Thanks
> Hari
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
> in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>|||> OK, so it is really only the last diff that I need so that I can use
> overwrite instead of append when I'm doing those.
Correct.

> I thought that with Simple recovery you don't do log backups?
Correct. But my thought was that you could run full or bulk logged and do lo
g backups.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Brian" <s@.y> wrote in message news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
> OK, so it is really only the last diff that I need so that I can use
> overwrite instead of append when I'm doing those.
> I thought that with Simple recovery you don't do log backups?
> Thank you
> Brian Morris
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n
> message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>|||I'm looking at that now but I'm not sure how much more effective it could
be. We don't have all those fancy fault tolerant setups, so I'm thinking
that if the drive with my log backups fails too I will still have to go to
the tape which would be an hour old.
Our set up is -
db on disk-1
log on disk-2
diff backups to a folder on log disk every hour (or 15 mins for logs as you
suggest with Full)
ntbackup folder to tape every hour
Thanks
Brian Morris
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...[vbcol=seagreen]
> Correct.
>
> Correct. But my thought was that you could run full or bulk logged and do
> log backups.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...|||"Brian" <s@.y> wrote in message news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
> I'm looking at that now but I'm not sure how much more effective it could
> be. We don't have all those fancy fault tolerant setups, so I'm thinking
> that if the drive with my log backups fails too I will still have to go to
> the tape which would be an hour old.
> Our set up is -
> db on disk-1
> log on disk-2
> diff backups to a folder on log disk every hour (or 15 mins for logs as
> you suggest with Full)
> ntbackup folder to tape every hour
I'd at the very least do your backups to a network share. You have too many
eggs in one basket.
And I think what Tibor is getting at is if you're doing diff's this often,
you might as well go ahead with a FULL recovery model and use transaction
log backups. This gives you more recovery options.
For example, right now if your DB disk dies, the best you can do is replace
and restore the full and diff backups. So you'll lose work.
If you are in full recovery mode and your DB disk dies, you can restore the
FULL, the DIFF and any subsequent log backups. (And if you back up the "tail
of the log", you can restore to the point of failure.
However, right now if your log disk fails, you're out of luck with restoring
because your backups are there.
As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
getting cheaper and cheaper every day. Might be well worth reconsidering.

> Thanks
> Brian Morris
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
> in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||Hmm, it looks like I've got a lot to think about.
I agree about the all in one basket which is why we wanted the hourly
backups.
I'm not too keen on the backup to network share, I was doing that for
something else and every so often there was a blip in the connection and the
backup failed and we have never been able to figure out the blip.
The Full with log backups does make more sense when you comapre the optins.
I'll have to try it to see how it imapacts things.
Thanks
Brian Morris
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>
> "Brian" <s@.y> wrote in message
> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
> I'd at the very least do your backups to a network share. You have too
> many eggs in one basket.
> And I think what Tibor is getting at is if you're doing diff's this often,
> you might as well go ahead with a FULL recovery model and use transaction
> log backups. This gives you more recovery options.
> For example, right now if your DB disk dies, the best you can do is
> replace and restore the full and diff backups. So you'll lose work.
> If you are in full recovery mode and your DB disk dies, you can restore
> the FULL, the DIFF and any subsequent log backups. (And if you back up the
> "tail of the log", you can restore to the point of failure.
> However, right now if your log disk fails, you're out of luck with
> restoring because your backups are there.
> As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
> getting cheaper and cheaper every day. Might be well worth reconsidering.
>
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com
> http://www.greenms.com/sqlserver.html
>|||"Brian" <s@.y> wrote in message news:uEioqPueHHA.4604@.TK2MSFTNGP06.phx.gbl...
> One last question/observation
> I'm reading that I have to restore all the log backups as opposed to just
> the last diff backup.
> If I were to lose one of the in between log backups I would be way worse
> off than if I lost one of the in between diff backups, would I not?
> Any way around this?
> Thanks
> Brian Morris
> "Brian" <s@.y> wrote in message
> news:%23HbumBueHHA.4128@.TK2MSFTNGP05.phx.gbl...
>

Differential backup/restore

Hello,
If this sounds like a stupid question I apologize in advance but I'm using
Simple model and do a Full backup 6am daily and then hourly Differentials.
If I need to restore to 9am do I need to restore Full and then all the
Differentials 7, 8, and 9 or do I just need to restore Full and 9am? Does
each Differential include all the changes since the Full backup or from
since the last backup whatever it was, full or differential?
Thank you
Brian MorrisYou restore the most recent db backup and then the most recent dif backup. In your example, the 6am
db backup and then the 9am diff backup. You might want to consider doing log backups instead of or
to complement your diff backups. Log backups has advantages that diff backups don't have (point in
time restore, doing backup of a corrupt database etc).
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Brian" <s@.y> wrote in message news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
> Hello,
> If this sounds like a stupid question I apologize in advance but I'm using Simple model and do a
> Full backup 6am daily and then hourly Differentials. If I need to restore to 9am do I need to
> restore Full and then all the Differentials 7, 8, and 9 or do I just need to restore Full and 9am?
> Does each Differential include all the changes since the Full backup or from since the last backup
> whatever it was, full or differential?
> Thank you
> Brian Morris
>|||Hi Brian,
To add on to Tibor, If it is a production server it is recommeneded to set
the database recovery model to FULL and have Transaction log backups
in regular frequencies (Say 15 minutes or so). THis will help you to recover
the database POINT_IN_TIME.
Thanks
Hari
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
> You restore the most recent db backup and then the most recent dif backup.
> In your example, the 6am db backup and then the 9am diff backup. You might
> want to consider doing log backups instead of or to complement your diff
> backups. Log backups has advantages that diff backups don't have (point in
> time restore, doing backup of a corrupt database etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full and
>> then all the Differentials 7, 8, and 9 or do I just need to restore Full
>> and 9am? Does each Differential include all the changes since the Full
>> backup or from since the last backup whatever it was, full or
>> differential?
>> Thank you
>> Brian Morris
>|||OK, so it is really only the last diff that I need so that I can use
overwrite instead of append when I'm doing those.
I thought that with Simple recovery you don't do log backups?
Thank you
Brian Morris
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
> You restore the most recent db backup and then the most recent dif backup.
> In your example, the 6am db backup and then the 9am diff backup. You might
> want to consider doing log backups instead of or to complement your diff
> backups. Log backups has advantages that diff backups don't have (point in
> time restore, doing backup of a corrupt database etc).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full and
>> then all the Differentials 7, 8, and 9 or do I just need to restore Full
>> and 9am? Does each Differential include all the changes since the Full
>> backup or from since the last backup whatever it was, full or
>> differential?
>> Thank you
>> Brian Morris
>|||Someone had suggested that Simple with diff backups every hour or halfhour
would be what I needed. When it came it was set to Full. I was not doing
any log backups, just 2 daily complete db backups and the log was getting
huge. The amount of work that would have to be done over in an hour would
not be too much and the recovery process sounded much more straight forward.
I will look at what you suggest.
Thanks
Brian Morris
"Hari Prasad" <hari_prasad_k@.hotmail.com> wrote in message
news:OjOUr1peHHA.4868@.TK2MSFTNGP06.phx.gbl...
> Hi Brian,
> To add on to Tibor, If it is a production server it is recommeneded to set
> the database recovery model to FULL and have Transaction log backups
> in regular frequencies (Say 15 minutes or so). THis will help you to
> recover the database POINT_IN_TIME.
> Thanks
> Hari
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
> in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif
>> backup. In your example, the 6am db backup and then the 9am diff backup.
>> You might want to consider doing log backups instead of or to complement
>> your diff backups. Log backups has advantages that diff backups don't
>> have (point in time restore, doing backup of a corrupt database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full and
>> then all the Differentials 7, 8, and 9 or do I just need to restore Full
>> and 9am? Does each Differential include all the changes since the Full
>> backup or from since the last backup whatever it was, full or
>> differential?
>> Thank you
>> Brian Morris
>>
>|||> OK, so it is really only the last diff that I need so that I can use
> overwrite instead of append when I'm doing those.
Correct.
> I thought that with Simple recovery you don't do log backups?
Correct. But my thought was that you could run full or bulk logged and do log backups.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi
"Brian" <s@.y> wrote in message news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
> OK, so it is really only the last diff that I need so that I can use
> overwrite instead of append when I'm doing those.
> I thought that with Simple recovery you don't do log backups?
> Thank you
> Brian Morris
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif backup.
>> In your example, the 6am db backup and then the 9am diff backup. You might
>> want to consider doing log backups instead of or to complement your diff
>> backups. Log backups has advantages that diff backups don't have (point in
>> time restore, doing backup of a corrupt database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full and
>> then all the Differentials 7, 8, and 9 or do I just need to restore Full
>> and 9am? Does each Differential include all the changes since the Full
>> backup or from since the last backup whatever it was, full or
>> differential?
>> Thank you
>> Brian Morris
>>
>|||I'm looking at that now but I'm not sure how much more effective it could
be. We don't have all those fancy fault tolerant setups, so I'm thinking
that if the drive with my log backups fails too I will still have to go to
the tape which would be an hour old.
Our set up is -
db on disk-1
log on disk-2
diff backups to a folder on log disk every hour (or 15 mins for logs as you
suggest with Full)
ntbackup folder to tape every hour
Thanks
Brian Morris
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
> Correct.
>
>> I thought that with Simple recovery you don't do log backups?
> Correct. But my thought was that you could run full or bulk logged and do
> log backups.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
> "Brian" <s@.y> wrote in message
> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
>> in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif
>> backup. In your example, the 6am db backup and then the 9am diff backup.
>> You might want to consider doing log backups instead of or to complement
>> your diff backups. Log backups has advantages that diff backups don't
>> have (point in time restore, doing backup of a corrupt database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full
>> and then all the Differentials 7, 8, and 9 or do I just need to restore
>> Full and 9am? Does each Differential include all the changes since the
>> Full backup or from since the last backup whatever it was, full or
>> differential?
>> Thank you
>> Brian Morris
>>|||"Brian" <s@.y> wrote in message news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
> I'm looking at that now but I'm not sure how much more effective it could
> be. We don't have all those fancy fault tolerant setups, so I'm thinking
> that if the drive with my log backups fails too I will still have to go to
> the tape which would be an hour old.
> Our set up is -
> db on disk-1
> log on disk-2
> diff backups to a folder on log disk every hour (or 15 mins for logs as
> you suggest with Full)
> ntbackup folder to tape every hour
I'd at the very least do your backups to a network share. You have too many
eggs in one basket.
And I think what Tibor is getting at is if you're doing diff's this often,
you might as well go ahead with a FULL recovery model and use transaction
log backups. This gives you more recovery options.
For example, right now if your DB disk dies, the best you can do is replace
and restore the full and diff backups. So you'll lose work.
If you are in full recovery mode and your DB disk dies, you can restore the
FULL, the DIFF and any subsequent log backups. (And if you back up the "tail
of the log", you can restore to the point of failure.
However, right now if your log disk fails, you're out of luck with restoring
because your backups are there.
As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
getting cheaper and cheaper every day. Might be well worth reconsidering.
> Thanks
> Brian Morris
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
> in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> Correct.
>>
>> I thought that with Simple recovery you don't do log backups?
>> Correct. But my thought was that you could run full or bulk logged and do
>> log backups.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
>> in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif
>> backup. In your example, the 6am db backup and then the 9am diff
>> backup. You might want to consider doing log backups instead of or to
>> complement your diff backups. Log backups has advantages that diff
>> backups don't have (point in time restore, doing backup of a corrupt
>> database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full
>> and then all the Differentials 7, 8, and 9 or do I just need to
>> restore Full and 9am? Does each Differential include all the changes
>> since the Full backup or from since the last backup whatever it was,
>> full or differential?
>> Thank you
>> Brian Morris
>>
>
--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||Hmm, it looks like I've got a lot to think about.
I agree about the all in one basket which is why we wanted the hourly
backups.
I'm not too keen on the backup to network share, I was doing that for
something else and every so often there was a blip in the connection and the
backup failed and we have never been able to figure out the blip.
The Full with log backups does make more sense when you comapre the optins.
I'll have to try it to see how it imapacts things.
Thanks
Brian Morris
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>
> "Brian" <s@.y> wrote in message
> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
>> I'm looking at that now but I'm not sure how much more effective it could
>> be. We don't have all those fancy fault tolerant setups, so I'm thinking
>> that if the drive with my log backups fails too I will still have to go
>> to the tape which would be an hour old.
>> Our set up is -
>> db on disk-1
>> log on disk-2
>> diff backups to a folder on log disk every hour (or 15 mins for logs as
>> you suggest with Full)
>> ntbackup folder to tape every hour
> I'd at the very least do your backups to a network share. You have too
> many eggs in one basket.
> And I think what Tibor is getting at is if you're doing diff's this often,
> you might as well go ahead with a FULL recovery model and use transaction
> log backups. This gives you more recovery options.
> For example, right now if your DB disk dies, the best you can do is
> replace and restore the full and diff backups. So you'll lose work.
> If you are in full recovery mode and your DB disk dies, you can restore
> the FULL, the DIFF and any subsequent log backups. (And if you back up the
> "tail of the log", you can restore to the point of failure.
> However, right now if your log disk fails, you're out of luck with
> restoring because your backups are there.
> As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
> getting cheaper and cheaper every day. Might be well worth reconsidering.
>
>> Thanks
>> Brian Morris
>>
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
>> in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> Correct.
>>
>> I thought that with Simple recovery you don't do log backups?
>> Correct. But my thought was that you could run full or bulk logged and
>> do log backups.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif
>> backup. In your example, the 6am db backup and then the 9am diff
>> backup. You might want to consider doing log backups instead of or to
>> complement your diff backups. Log backups has advantages that diff
>> backups don't have (point in time restore, doing backup of a corrupt
>> database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>> Hello,
>> If this sounds like a stupid question I apologize in advance but I'm
>> using Simple model and do a Full backup 6am daily and then hourly
>> Differentials. If I need to restore to 9am do I need to restore Full
>> and then all the Differentials 7, 8, and 9 or do I just need to
>> restore Full and 9am? Does each Differential include all the changes
>> since the Full backup or from since the last backup whatever it was,
>> full or differential?
>> Thank you
>> Brian Morris
>>
>>
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com
> http://www.greenms.com/sqlserver.html
>|||One last question/observation
I'm reading that I have to restore all the log backups as opposed to just
the last diff backup.
If I were to lose one of the in between log backups I would be way worse off
than if I lost one of the in between diff backups, would I not?
Any way around this?
Thanks
Brian Morris
"Brian" <s@.y> wrote in message
news:%23HbumBueHHA.4128@.TK2MSFTNGP05.phx.gbl...
> Hmm, it looks like I've got a lot to think about.
> I agree about the all in one basket which is why we wanted the hourly
> backups.
> I'm not too keen on the backup to network share, I was doing that for
> something else and every so often there was a blip in the connection and
> the backup failed and we have never been able to figure out the blip.
> The Full with log backups does make more sense when you comapre the
> optins. I'll have to try it to see how it imapacts things.
> Thanks
> Brian Morris
> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
> message news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>>
>> "Brian" <s@.y> wrote in message
>> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
>> I'm looking at that now but I'm not sure how much more effective it
>> could be. We don't have all those fancy fault tolerant setups, so I'm
>> thinking that if the drive with my log backups fails too I will still
>> have to go to the tape which would be an hour old.
>> Our set up is -
>> db on disk-1
>> log on disk-2
>> diff backups to a folder on log disk every hour (or 15 mins for logs as
>> you suggest with Full)
>> ntbackup folder to tape every hour
>> I'd at the very least do your backups to a network share. You have too
>> many eggs in one basket.
>> And I think what Tibor is getting at is if you're doing diff's this
>> often, you might as well go ahead with a FULL recovery model and use
>> transaction log backups. This gives you more recovery options.
>> For example, right now if your DB disk dies, the best you can do is
>> replace and restore the full and diff backups. So you'll lose work.
>> If you are in full recovery mode and your DB disk dies, you can restore
>> the FULL, the DIFF and any subsequent log backups. (And if you back up
>> the "tail of the log", you can restore to the point of failure.
>> However, right now if your log disk fails, you're out of luck with
>> restoring because your backups are there.
>> As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
>> getting cheaper and cheaper every day. Might be well worth
>> reconsidering.
>>
>> Thanks
>> Brian Morris
>>
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
>> in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> Correct.
>>
>> I thought that with Simple recovery you don't do log backups?
>> Correct. But my thought was that you could run full or bulk logged and
>> do log backups.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif
>> backup. In your example, the 6am db backup and then the 9am diff
>> backup. You might want to consider doing log backups instead of or to
>> complement your diff backups. Log backups has advantages that diff
>> backups don't have (point in time restore, doing backup of a corrupt
>> database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>>> Hello,
>>> If this sounds like a stupid question I apologize in advance but
>>> I'm using Simple model and do a Full backup 6am daily and then
>>> hourly Differentials. If I need to restore to 9am do I need to
>>> restore Full and then all the Differentials 7, 8, and 9 or do I just
>>> need to restore Full and 9am? Does each Differential include all the
>>> changes since the Full backup or from since the last backup whatever
>>> it was, full or differential?
>>>
>>> Thank you
>>> Brian Morris
>>>
>>
>>
>> --
>> Greg Moore
>> SQL Server DBA Consulting Remote and Onsite available!
>> Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
>>
>|||"Brian" <s@.y> wrote in message
news:%23HbumBueHHA.4128@.TK2MSFTNGP05.phx.gbl...
> Hmm, it looks like I've got a lot to think about.
> I agree about the all in one basket which is why we wanted the hourly
> backups.
> I'm not too keen on the backup to network share, I was doing that for
> something else and every so often there was a blip in the connection and
> the backup failed and we have never been able to figure out the blip.
Hmm. In general though that shouldn't be a huge problem. (Yes, it's a
problem, but...).
The next backup will backup the data. (Unless you're saying you have a
backup reported as complete, but no actual file.)
One thing you can do to is have a dedicated network connection. That may be
faster and less prone to network glitches.
Or, if you really want, plug in a nice generic IDE drive to the existing box
and do backups to that.
In worse case scenario, open box, grab drive and put into another machine.
> The Full with log backups does make more sense when you comapre the
> optins. I'll have to try it to see how it imapacts things.
> Thanks
> Brian Morris
> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
> message news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>>
>> "Brian" <s@.y> wrote in message
>> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
>> I'm looking at that now but I'm not sure how much more effective it
>> could be. We don't have all those fancy fault tolerant setups, so I'm
>> thinking that if the drive with my log backups fails too I will still
>> have to go to the tape which would be an hour old.
>> Our set up is -
>> db on disk-1
>> log on disk-2
>> diff backups to a folder on log disk every hour (or 15 mins for logs as
>> you suggest with Full)
>> ntbackup folder to tape every hour
>> I'd at the very least do your backups to a network share. You have too
>> many eggs in one basket.
>> And I think what Tibor is getting at is if you're doing diff's this
>> often, you might as well go ahead with a FULL recovery model and use
>> transaction log backups. This gives you more recovery options.
>> For example, right now if your DB disk dies, the best you can do is
>> replace and restore the full and diff backups. So you'll lose work.
>> If you are in full recovery mode and your DB disk dies, you can restore
>> the FULL, the DIFF and any subsequent log backups. (And if you back up
>> the "tail of the log", you can restore to the point of failure.
>> However, right now if your log disk fails, you're out of luck with
>> restoring because your backups are there.
>> As for "fancy fault tolerant setups" RAID cards (or even on the mobo) are
>> getting cheaper and cheaper every day. Might be well worth
>> reconsidering.
>>
>> Thanks
>> Brian Morris
>>
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
>> in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> Correct.
>>
>> I thought that with Simple recovery you don't do log backups?
>> Correct. But my thought was that you could run full or bulk logged and
>> do log backups.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>> You restore the most recent db backup and then the most recent dif
>> backup. In your example, the 6am db backup and then the 9am diff
>> backup. You might want to consider doing log backups instead of or to
>> complement your diff backups. Log backups has advantages that diff
>> backups don't have (point in time restore, doing backup of a corrupt
>> database etc).
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>>> Hello,
>>> If this sounds like a stupid question I apologize in advance but
>>> I'm using Simple model and do a Full backup 6am daily and then
>>> hourly Differentials. If I need to restore to 9am do I need to
>>> restore Full and then all the Differentials 7, 8, and 9 or do I just
>>> need to restore Full and 9am? Does each Differential include all the
>>> changes since the Full backup or from since the last backup whatever
>>> it was, full or differential?
>>>
>>> Thank you
>>> Brian Morris
>>>
>>
>>
>> --
>> Greg Moore
>> SQL Server DBA Consulting Remote and Onsite available!
>> Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
>>
>
--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||"Brian" <s@.y> wrote in message news:uEioqPueHHA.4604@.TK2MSFTNGP06.phx.gbl...
> One last question/observation
> I'm reading that I have to restore all the log backups as opposed to just
> the last diff backup.
> If I were to lose one of the in between log backups I would be way worse
> off than if I lost one of the in between diff backups, would I not?
> Any way around this?
> Thanks
> Brian Morris
> "Brian" <s@.y> wrote in message
> news:%23HbumBueHHA.4128@.TK2MSFTNGP05.phx.gbl...
>> Hmm, it looks like I've got a lot to think about.
>> I agree about the all in one basket which is why we wanted the hourly
>> backups.
>> I'm not too keen on the backup to network share, I was doing that for
>> something else and every so often there was a blip in the connection and
>> the backup failed and we have never been able to figure out the blip.
>> The Full with log backups does make more sense when you comapre the
>> optins. I'll have to try it to see how it imapacts things.
>> Thanks
>> Brian Morris
>> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
>> message news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>>
>> "Brian" <s@.y> wrote in message
>> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
>> I'm looking at that now but I'm not sure how much more effective it
>> could be. We don't have all those fancy fault tolerant setups, so I'm
>> thinking that if the drive with my log backups fails too I will still
>> have to go to the tape which would be an hour old.
>> Our set up is -
>> db on disk-1
>> log on disk-2
>> diff backups to a folder on log disk every hour (or 15 mins for logs as
>> you suggest with Full)
>> ntbackup folder to tape every hour
>> I'd at the very least do your backups to a network share. You have too
>> many eggs in one basket.
>> And I think what Tibor is getting at is if you're doing diff's this
>> often, you might as well go ahead with a FULL recovery model and use
>> transaction log backups. This gives you more recovery options.
>> For example, right now if your DB disk dies, the best you can do is
>> replace and restore the full and diff backups. So you'll lose work.
>> If you are in full recovery mode and your DB disk dies, you can restore
>> the FULL, the DIFF and any subsequent log backups. (And if you back up
>> the "tail of the log", you can restore to the point of failure.
>> However, right now if your log disk fails, you're out of luck with
>> restoring because your backups are there.
>> As for "fancy fault tolerant setups" RAID cards (or even on the mobo)
>> are getting cheaper and cheaper every day. Might be well worth
>> reconsidering.
>>
>> Thanks
>> Brian Morris
>>
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> Correct.
>>
>> I thought that with Simple recovery you don't do log backups?
>> Correct. But my thought was that you could run full or bulk logged and
>> do log backups.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>>> You restore the most recent db backup and then the most recent dif
>>> backup. In your example, the 6am db backup and then the 9am diff
>>> backup. You might want to consider doing log backups instead of or
>>> to complement your diff backups. Log backups has advantages that
>>> diff backups don't have (point in time restore, doing backup of a
>>> corrupt database etc).
>>>
>>> --
>>> Tibor Karaszi, SQL Server MVP
>>> http://www.karaszi.com/sqlserver/default.asp
>>> http://sqlblog.com/blogs/tibor_karaszi
>>>
>>>
>>> "Brian" <s@.y> wrote in message
>>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>>> Hello,
>>> If this sounds like a stupid question I apologize in advance but
>>> I'm using Simple model and do a Full backup 6am daily and then
>>> hourly Differentials. If I need to restore to 9am do I need to
>>> restore Full and then all the Differentials 7, 8, and 9 or do I
>>> just need to restore Full and 9am? Does each Differential include
>>> all the changes since the Full backup or from since the last backup
>>> whatever it was, full or differential?
>>>
>>> Thank you
>>> Brian Morris
>>>
>>>
>>
>> --
>> Greg Moore
>> SQL Server DBA Consulting Remote and Onsite available!
>> Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
>>
>>
>|||"Brian" <s@.y> wrote in message news:uEioqPueHHA.4604@.TK2MSFTNGP06.phx.gbl...
> One last question/observation
> I'm reading that I have to restore all the log backups as opposed to just
> the last diff backup.
All log backups since the last full or last DIFF, yes.
> If I were to lose one of the in between log backups I would be way worse
> off than if I lost one of the in between diff backups, would I not?
Yes. That's called preserving the backup chain. VERY important to do.
But again, with gives you far more possibilities in terms of recovering
data.
Imagine that you're in FULL RECOVERY mode.
10 Rows added before 11:30 AM
Transaction backup made at 11:30 AM
90 Rows added between 11:30 AM and NOON
Someone deletes 100 rows by mistake at 11:50 AM.
Your next transaction log backup is at Noon.
You need those rows;
Restore FULL backup WITH NORECOVERY
Restore most recent (if any) DIFF backup WITH NORECOVERY
Restore transaction logs up to one BEFORE the Noon backup. (use WITH
NORECOVERY)
Now, restore the NOON transaction log backup with STANDBY specifying STOPAT
and the time.
Now since you won't know the exact minute, play with it until the 100 rows
show what you want...
You've got your data back.
If you had only the DIFF backups and no log backups you'd be out of luck.
> Any way around this?
> Thanks
> Brian Morris
--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||OK, you've got me there, I was not even thinking about recovering from human
problems (which actually occur more often than machine ones!). I'm now sold
on FULL.
Thanks Greg
Brian Morris
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:ermwWkueHHA.4136@.TK2MSFTNGP02.phx.gbl...
>
> "Brian" <s@.y> wrote in message
> news:uEioqPueHHA.4604@.TK2MSFTNGP06.phx.gbl...
>> One last question/observation
>> I'm reading that I have to restore all the log backups as opposed to just
>> the last diff backup.
> All log backups since the last full or last DIFF, yes.
>> If I were to lose one of the in between log backups I would be way worse
>> off than if I lost one of the in between diff backups, would I not?
> Yes. That's called preserving the backup chain. VERY important to do.
> But again, with gives you far more possibilities in terms of recovering
> data.
> Imagine that you're in FULL RECOVERY mode.
> 10 Rows added before 11:30 AM
> Transaction backup made at 11:30 AM
> 90 Rows added between 11:30 AM and NOON
> Someone deletes 100 rows by mistake at 11:50 AM.
> Your next transaction log backup is at Noon.
> You need those rows;
> Restore FULL backup WITH NORECOVERY
> Restore most recent (if any) DIFF backup WITH NORECOVERY
> Restore transaction logs up to one BEFORE the Noon backup. (use WITH
> NORECOVERY)
> Now, restore the NOON transaction log backup with STANDBY specifying
> STOPAT and the time.
> Now since you won't know the exact minute, play with it until the 100 rows
> show what you want...
> You've got your data back.
> If you had only the DIFF backups and no log backups you'd be out of luck.
>
>> Any way around this?
>> Thanks
>> Brian Morris
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com
> http://www.greenms.com/sqlserver.html
>|||"Brian" <s@.y> wrote in message news:e7uHoJweHHA.4868@.TK2MSFTNGP06.phx.gbl...
> OK, you've got me there, I was not even thinking about recovering from
> human problems (which actually occur more often than machine ones!). I'm
> now sold on FULL.
Ayup, same here.
> Thanks Greg
> Brian Morris
>
--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||I'll ask the h/ware guy about dedicated network connection - I don't know
how to do that.
You mean like a USB drive? I like those and use them to backup other stuff
on the pc's but they fail too so it's still a matter of making sure I've got
a good copy of everything in at least one place.
I forgot to ask, to 'preserving the backup chain', if a log backup job fails
and I have it set to attempt retry will the second try capture the proper
data?
Thanks
Brian
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:%230c1sfueHHA.4704@.TK2MSFTNGP06.phx.gbl...
>
> "Brian" <s@.y> wrote in message
> news:%23HbumBueHHA.4128@.TK2MSFTNGP05.phx.gbl...
>> Hmm, it looks like I've got a lot to think about.
>> I agree about the all in one basket which is why we wanted the hourly
>> backups.
>> I'm not too keen on the backup to network share, I was doing that for
>> something else and every so often there was a blip in the connection and
>> the backup failed and we have never been able to figure out the blip.
> Hmm. In general though that shouldn't be a huge problem. (Yes, it's a
> problem, but...).
> The next backup will backup the data. (Unless you're saying you have a
> backup reported as complete, but no actual file.)
> One thing you can do to is have a dedicated network connection. That may
> be faster and less prone to network glitches.
> Or, if you really want, plug in a nice generic IDE drive to the existing
> box and do backups to that.
> In worse case scenario, open box, grab drive and put into another machine.
>
>> The Full with log backups does make more sense when you comapre the
>> optins. I'll have to try it to see how it imapacts things.
>> Thanks
>> Brian Morris
>> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
>> message news:%230IpArteHHA.596@.TK2MSFTNGP06.phx.gbl...
>>
>> "Brian" <s@.y> wrote in message
>> news:e8hFzeteHHA.1216@.TK2MSFTNGP03.phx.gbl...
>> I'm looking at that now but I'm not sure how much more effective it
>> could be. We don't have all those fancy fault tolerant setups, so I'm
>> thinking that if the drive with my log backups fails too I will still
>> have to go to the tape which would be an hour old.
>> Our set up is -
>> db on disk-1
>> log on disk-2
>> diff backups to a folder on log disk every hour (or 15 mins for logs as
>> you suggest with Full)
>> ntbackup folder to tape every hour
>> I'd at the very least do your backups to a network share. You have too
>> many eggs in one basket.
>> And I think what Tibor is getting at is if you're doing diff's this
>> often, you might as well go ahead with a FULL recovery model and use
>> transaction log backups. This gives you more recovery options.
>> For example, right now if your DB disk dies, the best you can do is
>> replace and restore the full and diff backups. So you'll lose work.
>> If you are in full recovery mode and your DB disk dies, you can restore
>> the FULL, the DIFF and any subsequent log backups. (And if you back up
>> the "tail of the log", you can restore to the point of failure.
>> However, right now if your log disk fails, you're out of luck with
>> restoring because your backups are there.
>> As for "fancy fault tolerant setups" RAID cards (or even on the mobo)
>> are getting cheaper and cheaper every day. Might be well worth
>> reconsidering.
>>
>> Thanks
>> Brian Morris
>>
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:uRlLEPteHHA.5044@.TK2MSFTNGP05.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> Correct.
>>
>> I thought that with Simple recovery you don't do log backups?
>> Correct. But my thought was that you could run full or bulk logged and
>> do log backups.
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>> "Brian" <s@.y> wrote in message
>> news:uhIw8rseHHA.4064@.TK2MSFTNGP03.phx.gbl...
>> OK, so it is really only the last diff that I need so that I can use
>> overwrite instead of append when I'm doing those.
>> I thought that with Simple recovery you don't do log backups?
>> Thank you
>> Brian Morris
>> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com>
>> wrote in message news:ujNoRDpeHHA.5044@.TK2MSFTNGP06.phx.gbl...
>>> You restore the most recent db backup and then the most recent dif
>>> backup. In your example, the 6am db backup and then the 9am diff
>>> backup. You might want to consider doing log backups instead of or
>>> to complement your diff backups. Log backups has advantages that
>>> diff backups don't have (point in time restore, doing backup of a
>>> corrupt database etc).
>>>
>>> --
>>> Tibor Karaszi, SQL Server MVP
>>> http://www.karaszi.com/sqlserver/default.asp
>>> http://sqlblog.com/blogs/tibor_karaszi
>>>
>>>
>>> "Brian" <s@.y> wrote in message
>>> news:%237oGgeoeHHA.3648@.TK2MSFTNGP05.phx.gbl...
>>> Hello,
>>> If this sounds like a stupid question I apologize in advance but
>>> I'm using Simple model and do a Full backup 6am daily and then
>>> hourly Differentials. If I need to restore to 9am do I need to
>>> restore Full and then all the Differentials 7, 8, and 9 or do I
>>> just need to restore Full and 9am? Does each Differential include
>>> all the changes since the Full backup or from since the last backup
>>> whatever it was, full or differential?
>>>
>>> Thank you
>>> Brian Morris
>>>
>>>
>>
>> --
>> Greg Moore
>> SQL Server DBA Consulting Remote and Onsite available!
>> Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
>>
>>
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com
> http://www.greenms.com/sqlserver.html
>|||"Brian" <s@.y> wrote in message
news:%23ptarbweHHA.1252@.TK2MSFTNGP04.phx.gbl...
> I'll ask the h/ware guy about dedicated network connection - I don't know
> how to do that.
Generally I've never really found one necessary, but it can be useful.
> You mean like a USB drive?
No, I meant normal PATA or SATA drive. USB 2.0 will work in a pinch but is
definitely slower.
(now a thumb drive, if your backups are fairly small might just work,
haven't tried that though.)
> I like those and use them to backup other stuff on the pc's but they fail
> too so it's still a matter of making sure I've got a good copy of
> everything in at least one place.
Oh definitely. What I actually used a lot were Snap Servers, some of the
newer ones are quite nice.
> I forgot to ask, to 'preserving the backup chain', if a log backup job
> fails and I have it set to attempt retry will the second try capture the
> proper data?
Yes.
What I really like to do given hardware, etc, is setup a log-shipping
secondary (even if I roll my own) and apply the backups as I go. Both
allows me to "test" my backup all along and in the event I do have a
problem, 1/2 the work of recovery is already done.
(and if you delay applying the logs by about say 4 hours, when the developer
says, "oops" your chances of having whatever he deleted available on the
log-shipping secondary is generally pretty high.
> Thanks
> Brian
> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
> message news:%230c1sfueHHA.4704@.TK2MSFTNGP06.phx.gbl...
--
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||I have a 4GB flash drive but it somehow seems slower than my SATA USB drive.
I've seen the snap server adverts, I'll take a closer look.
I'm going to see if I can test the retry option to make sure I have to set
correctly.
Okay, you just passed my level on the log-shipping. I see it's something
about automatically maintaining a backup server. When I get a spare machine
I'll take a read about that.
Thanks a lot for the advice,
Brian Morris
"Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in message
news:e7EOXxxeHHA.3948@.TK2MSFTNGP03.phx.gbl...
> "Brian" <s@.y> wrote in message
> news:%23ptarbweHHA.1252@.TK2MSFTNGP04.phx.gbl...
>> I'll ask the h/ware guy about dedicated network connection - I don't know
>> how to do that.
> Generally I've never really found one necessary, but it can be useful.
>> You mean like a USB drive?
> No, I meant normal PATA or SATA drive. USB 2.0 will work in a pinch but
> is definitely slower.
> (now a thumb drive, if your backups are fairly small might just work,
> haven't tried that though.)
>
>> I like those and use them to backup other stuff on the pc's but they fail
>> too so it's still a matter of making sure I've got a good copy of
>> everything in at least one place.
> Oh definitely. What I actually used a lot were Snap Servers, some of the
> newer ones are quite nice.
>> I forgot to ask, to 'preserving the backup chain', if a log backup job
>> fails and I have it set to attempt retry will the second try capture the
>> proper data?
> Yes.
> What I really like to do given hardware, etc, is setup a log-shipping
> secondary (even if I roll my own) and apply the backups as I go. Both
> allows me to "test" my backup all along and in the event I do have a
> problem, 1/2 the work of recovery is already done.
> (and if you delay applying the logs by about say 4 hours, when the
> developer says, "oops" your chances of having whatever he deleted
> available on the log-shipping secondary is generally pretty high.
>
>> Thanks
>> Brian
>> "Greg D. Moore (Strider)" <mooregr_deleteth1s@.greenms.com> wrote in
>> message news:%230c1sfueHHA.4704@.TK2MSFTNGP06.phx.gbl...
> --
> Greg Moore
> SQL Server DBA Consulting Remote and Onsite available!
> Email: sql (at) greenms.com
> http://www.greenms.com/sqlserver.html
>