Hi, everyday an automated backup is done of my content database and when i
checked today to ensure the job went thru, I realized it failed.
I get the error msg:
"A nonrecoverable I/O error occured on file
"\\tcl-fileserver3\backups\moss\daily"
The specified network name is no longer available. Error: 3013"
I created a new file and did a backup to that file
"\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
then renamed the original file and did a backup and that went thru......
Is it possible that a file name can be corrupted? The original backup path
was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
"\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
fine......
What could be the issue here?
When you say the remote server, you are referring to the server where i am
backing up the information to?
Also, I didn't change the time in the schedule, I just changed the name of
the file and it worked......
What could cause this?
"Des FitzGerald" wrote:
> Hi Shelly,
> I think this points to a problem with either the network connection at the
> scheduled time of the backup or to over processing on the remote network
> server you are sending the backup to at the time of the schedule.
> Could it be that this remote server is under heavy load during the backup?
> If so perhaps changing the time of the schedule if possible may help.
> Kind Regards,
> Des
>
> On 08/01/2008 16:09, in article
> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
> <Shelley@.discussions.microsoft.com> wrote:
>
>
>
|||Hi, thanks so much for your help.
I renamed the file, but left the schedule the same and the backup went thru.
Still not sure what the exact problem was since this was the first time this
ever happened; have been doing the automated backups for about a month now.
Thanks again,
Shelley
"Des FitzGerald" wrote:
> The remote server is where you are backing up your database to - in this
> case \\tcl-fileserver
> I am thinking that this server was under load when your normal scheduled
> nightly execution took place and this may have caused the problem or perhaps
> there was an intermittent network problem at the time.
> Both these scenarios are possibilities as to why you have seen this issue,
> the file name may have become corrupt because of the I/O problems on the
> server, I would look at the time of the schedule and see if other heavy
> processing is occurring on your remote backup location and change the time
> if possible of the schedule so it executes when the server is under less
> strain.
> Alternatively if this happened only once out of 100 runs of the schedule it
> may just be bad luck and the schedule can remain. It would also be possible
> to write a check before starting the backup to make sure the file exists and
> can be reached and that all looks OK.
> Cheers,
> Des
> On 08/01/2008 16:31, in article
> 62B77DBE-316A-4C5F-AAAB-AD1B9E1AB994@.microsoft.com, "Shelley"
> <Shelley@.discussions.microsoft.com> wrote:
>
>
Showing posts with label everyday. Show all posts
Showing posts with label everyday. Show all posts
Tuesday, March 27, 2012
Backup failed - Error 3013
Hi, everyday an automated backup is done of my content database and when i
checked today to ensure the job went thru, I realized it failed.
I get the error msg:
"A nonrecoverable I/O error occured on file
"\\tcl-fileserver3\backups\moss\daily"
The specified network name is no longer available. Error: 3013"
I created a new file and did a backup to that file
"\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
then renamed the original file and did a backup and that went thru......
Is it possible that a file name can be corrupted? The original backup path
was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
"\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
fine......
What could be the issue here?Hi Shelly,
I think this points to a problem with either the network connection at the
scheduled time of the backup or to over processing on the remote network
server you are sending the backup to at the time of the schedule.
Could it be that this remote server is under heavy load during the backup?
If so perhaps changing the time of the schedule if possible may help.
Kind Regards,
Des
On 08/01/2008 16:09, in article
ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
<Shelley@.discussions.microsoft.com> wrote:
> Hi, everyday an automated backup is done of my content database and when i
> checked today to ensure the job went thru, I realized it failed.
> I get the error msg:
> "A nonrecoverable I/O error occured on file
> "\\tcl-fileserver3\backups\moss\daily"
> The specified network name is no longer available. Error: 3013"
> I created a new file and did a backup to that file
> "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
> then renamed the original file and did a backup and that went thru......
> Is it possible that a file name can be corrupted? The original backup path
> was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
> "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
> fine......
> What could be the issue here?|||When you say the remote server, you are referring to the server where i am
backing up the information to?
Also, I didn't change the time in the schedule, I just changed the name of
the file and it worked......
What could cause this?
"Des FitzGerald" wrote:
> Hi Shelly,
> I think this points to a problem with either the network connection at the
> scheduled time of the backup or to over processing on the remote network
> server you are sending the backup to at the time of the schedule.
> Could it be that this remote server is under heavy load during the backup?
> If so perhaps changing the time of the schedule if possible may help.
> Kind Regards,
> Des
>
> On 08/01/2008 16:09, in article
> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
> <Shelley@.discussions.microsoft.com> wrote:
> > Hi, everyday an automated backup is done of my content database and when i
> > checked today to ensure the job went thru, I realized it failed.
> > I get the error msg:
> > "A nonrecoverable I/O error occured on file
> > "\\tcl-fileserver3\backups\moss\daily"
> > The specified network name is no longer available. Error: 3013"
> > I created a new file and did a backup to that file
> > "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
> > then renamed the original file and did a backup and that went thru......
> > Is it possible that a file name can be corrupted? The original backup path
> > was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
> > "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
> > fine......
> > What could be the issue here?
>
>
>|||The remote server is where you are backing up your database to - in this
case \\tcl-fileserver
I am thinking that this server was under load when your normal scheduled
nightly execution took place and this may have caused the problem or perhaps
there was an intermittent network problem at the time.
Both these scenarios are possibilities as to why you have seen this issue,
the file name may have become corrupt because of the I/O problems on the
server, I would look at the time of the schedule and see if other heavy
processing is occurring on your remote backup location and change the time
if possible of the schedule so it executes when the server is under less
strain.
Alternatively if this happened only once out of 100 runs of the schedule it
may just be bad luck and the schedule can remain. It would also be possible
to write a check before starting the backup to make sure the file exists and
can be reached and that all looks OK.
Cheers,
Des
On 08/01/2008 16:31, in article
62B77DBE-316A-4C5F-AAAB-AD1B9E1AB994@.microsoft.com, "Shelley"
<Shelley@.discussions.microsoft.com> wrote:
> When you say the remote server, you are referring to the server where i am
> backing up the information to?
> Also, I didn't change the time in the schedule, I just changed the name of
> the file and it worked......
> What could cause this?
> "Des FitzGerald" wrote:
>> Hi Shelly,
>> I think this points to a problem with either the network connection at the
>> scheduled time of the backup or to over processing on the remote network
>> server you are sending the backup to at the time of the schedule.
>> Could it be that this remote server is under heavy load during the backup?
>> If so perhaps changing the time of the schedule if possible may help.
>> Kind Regards,
>> Des
>>
>> On 08/01/2008 16:09, in article
>> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
>> <Shelley@.discussions.microsoft.com> wrote:
>> Hi, everyday an automated backup is done of my content database and when i
>> checked today to ensure the job went thru, I realized it failed.
>> I get the error msg:
>> "A nonrecoverable I/O error occured on file
>> "\\tcl-fileserver3\backups\moss\daily"
>> The specified network name is no longer available. Error: 3013"
>> I created a new file and did a backup to that file
>> "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
>> then renamed the original file and did a backup and that went thru......
>> Is it possible that a file name can be corrupted? The original backup path
>> was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
>> "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
>> fine......
>> What could be the issue here?
>>
>>|||Hi, thanks so much for your help.
I renamed the file, but left the schedule the same and the backup went thru.
Still not sure what the exact problem was since this was the first time this
ever happened; have been doing the automated backups for about a month now.
Thanks again,
Shelley
"Des FitzGerald" wrote:
> The remote server is where you are backing up your database to - in this
> case \\tcl-fileserver
> I am thinking that this server was under load when your normal scheduled
> nightly execution took place and this may have caused the problem or perhaps
> there was an intermittent network problem at the time.
> Both these scenarios are possibilities as to why you have seen this issue,
> the file name may have become corrupt because of the I/O problems on the
> server, I would look at the time of the schedule and see if other heavy
> processing is occurring on your remote backup location and change the time
> if possible of the schedule so it executes when the server is under less
> strain.
> Alternatively if this happened only once out of 100 runs of the schedule it
> may just be bad luck and the schedule can remain. It would also be possible
> to write a check before starting the backup to make sure the file exists and
> can be reached and that all looks OK.
> Cheers,
> Des
> On 08/01/2008 16:31, in article
> 62B77DBE-316A-4C5F-AAAB-AD1B9E1AB994@.microsoft.com, "Shelley"
> <Shelley@.discussions.microsoft.com> wrote:
> > When you say the remote server, you are referring to the server where i am
> > backing up the information to?
> > Also, I didn't change the time in the schedule, I just changed the name of
> > the file and it worked......
> > What could cause this?
> >
> > "Des FitzGerald" wrote:
> >
> >> Hi Shelly,
> >>
> >> I think this points to a problem with either the network connection at the
> >> scheduled time of the backup or to over processing on the remote network
> >> server you are sending the backup to at the time of the schedule.
> >>
> >> Could it be that this remote server is under heavy load during the backup?
> >>
> >> If so perhaps changing the time of the schedule if possible may help.
> >>
> >> Kind Regards,
> >> Des
> >>
> >>
> >>
> >> On 08/01/2008 16:09, in article
> >> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
> >> <Shelley@.discussions.microsoft.com> wrote:
> >>
> >> Hi, everyday an automated backup is done of my content database and when i
> >> checked today to ensure the job went thru, I realized it failed.
> >> I get the error msg:
> >> "A nonrecoverable I/O error occured on file
> >> "\\tcl-fileserver3\backups\moss\daily"
> >> The specified network name is no longer available. Error: 3013"
> >> I created a new file and did a backup to that file
> >> "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
> >> then renamed the original file and did a backup and that went thru......
> >> Is it possible that a file name can be corrupted? The original backup path
> >> was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
> >> "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
> >> fine......
> >> What could be the issue here?
> >>
> >>
> >>
> >>
> >>
>
>sql
checked today to ensure the job went thru, I realized it failed.
I get the error msg:
"A nonrecoverable I/O error occured on file
"\\tcl-fileserver3\backups\moss\daily"
The specified network name is no longer available. Error: 3013"
I created a new file and did a backup to that file
"\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
then renamed the original file and did a backup and that went thru......
Is it possible that a file name can be corrupted? The original backup path
was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
"\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
fine......
What could be the issue here?Hi Shelly,
I think this points to a problem with either the network connection at the
scheduled time of the backup or to over processing on the remote network
server you are sending the backup to at the time of the schedule.
Could it be that this remote server is under heavy load during the backup?
If so perhaps changing the time of the schedule if possible may help.
Kind Regards,
Des
On 08/01/2008 16:09, in article
ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
<Shelley@.discussions.microsoft.com> wrote:
> Hi, everyday an automated backup is done of my content database and when i
> checked today to ensure the job went thru, I realized it failed.
> I get the error msg:
> "A nonrecoverable I/O error occured on file
> "\\tcl-fileserver3\backups\moss\daily"
> The specified network name is no longer available. Error: 3013"
> I created a new file and did a backup to that file
> "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
> then renamed the original file and did a backup and that went thru......
> Is it possible that a file name can be corrupted? The original backup path
> was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
> "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
> fine......
> What could be the issue here?|||When you say the remote server, you are referring to the server where i am
backing up the information to?
Also, I didn't change the time in the schedule, I just changed the name of
the file and it worked......
What could cause this?
"Des FitzGerald" wrote:
> Hi Shelly,
> I think this points to a problem with either the network connection at the
> scheduled time of the backup or to over processing on the remote network
> server you are sending the backup to at the time of the schedule.
> Could it be that this remote server is under heavy load during the backup?
> If so perhaps changing the time of the schedule if possible may help.
> Kind Regards,
> Des
>
> On 08/01/2008 16:09, in article
> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
> <Shelley@.discussions.microsoft.com> wrote:
> > Hi, everyday an automated backup is done of my content database and when i
> > checked today to ensure the job went thru, I realized it failed.
> > I get the error msg:
> > "A nonrecoverable I/O error occured on file
> > "\\tcl-fileserver3\backups\moss\daily"
> > The specified network name is no longer available. Error: 3013"
> > I created a new file and did a backup to that file
> > "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
> > then renamed the original file and did a backup and that went thru......
> > Is it possible that a file name can be corrupted? The original backup path
> > was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
> > "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
> > fine......
> > What could be the issue here?
>
>
>|||The remote server is where you are backing up your database to - in this
case \\tcl-fileserver
I am thinking that this server was under load when your normal scheduled
nightly execution took place and this may have caused the problem or perhaps
there was an intermittent network problem at the time.
Both these scenarios are possibilities as to why you have seen this issue,
the file name may have become corrupt because of the I/O problems on the
server, I would look at the time of the schedule and see if other heavy
processing is occurring on your remote backup location and change the time
if possible of the schedule so it executes when the server is under less
strain.
Alternatively if this happened only once out of 100 runs of the schedule it
may just be bad luck and the schedule can remain. It would also be possible
to write a check before starting the backup to make sure the file exists and
can be reached and that all looks OK.
Cheers,
Des
On 08/01/2008 16:31, in article
62B77DBE-316A-4C5F-AAAB-AD1B9E1AB994@.microsoft.com, "Shelley"
<Shelley@.discussions.microsoft.com> wrote:
> When you say the remote server, you are referring to the server where i am
> backing up the information to?
> Also, I didn't change the time in the schedule, I just changed the name of
> the file and it worked......
> What could cause this?
> "Des FitzGerald" wrote:
>> Hi Shelly,
>> I think this points to a problem with either the network connection at the
>> scheduled time of the backup or to over processing on the remote network
>> server you are sending the backup to at the time of the schedule.
>> Could it be that this remote server is under heavy load during the backup?
>> If so perhaps changing the time of the schedule if possible may help.
>> Kind Regards,
>> Des
>>
>> On 08/01/2008 16:09, in article
>> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
>> <Shelley@.discussions.microsoft.com> wrote:
>> Hi, everyday an automated backup is done of my content database and when i
>> checked today to ensure the job went thru, I realized it failed.
>> I get the error msg:
>> "A nonrecoverable I/O error occured on file
>> "\\tcl-fileserver3\backups\moss\daily"
>> The specified network name is no longer available. Error: 3013"
>> I created a new file and did a backup to that file
>> "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
>> then renamed the original file and did a backup and that went thru......
>> Is it possible that a file name can be corrupted? The original backup path
>> was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
>> "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
>> fine......
>> What could be the issue here?
>>
>>|||Hi, thanks so much for your help.
I renamed the file, but left the schedule the same and the backup went thru.
Still not sure what the exact problem was since this was the first time this
ever happened; have been doing the automated backups for about a month now.
Thanks again,
Shelley
"Des FitzGerald" wrote:
> The remote server is where you are backing up your database to - in this
> case \\tcl-fileserver
> I am thinking that this server was under load when your normal scheduled
> nightly execution took place and this may have caused the problem or perhaps
> there was an intermittent network problem at the time.
> Both these scenarios are possibilities as to why you have seen this issue,
> the file name may have become corrupt because of the I/O problems on the
> server, I would look at the time of the schedule and see if other heavy
> processing is occurring on your remote backup location and change the time
> if possible of the schedule so it executes when the server is under less
> strain.
> Alternatively if this happened only once out of 100 runs of the schedule it
> may just be bad luck and the schedule can remain. It would also be possible
> to write a check before starting the backup to make sure the file exists and
> can be reached and that all looks OK.
> Cheers,
> Des
> On 08/01/2008 16:31, in article
> 62B77DBE-316A-4C5F-AAAB-AD1B9E1AB994@.microsoft.com, "Shelley"
> <Shelley@.discussions.microsoft.com> wrote:
> > When you say the remote server, you are referring to the server where i am
> > backing up the information to?
> > Also, I didn't change the time in the schedule, I just changed the name of
> > the file and it worked......
> > What could cause this?
> >
> > "Des FitzGerald" wrote:
> >
> >> Hi Shelly,
> >>
> >> I think this points to a problem with either the network connection at the
> >> scheduled time of the backup or to over processing on the remote network
> >> server you are sending the backup to at the time of the schedule.
> >>
> >> Could it be that this remote server is under heavy load during the backup?
> >>
> >> If so perhaps changing the time of the schedule if possible may help.
> >>
> >> Kind Regards,
> >> Des
> >>
> >>
> >>
> >> On 08/01/2008 16:09, in article
> >> ED8CA9B6-4896-4E15-BC4A-1DA86CDDCD03@.microsoft.com, "Shelley"
> >> <Shelley@.discussions.microsoft.com> wrote:
> >>
> >> Hi, everyday an automated backup is done of my content database and when i
> >> checked today to ensure the job went thru, I realized it failed.
> >> I get the error msg:
> >> "A nonrecoverable I/O error occured on file
> >> "\\tcl-fileserver3\backups\moss\daily"
> >> The specified network name is no longer available. Error: 3013"
> >> I created a new file and did a backup to that file
> >> "\\tcl-fileserver3\backups\moss\testing" and the backup went thru fine. I
> >> then renamed the original file and did a backup and that went thru......
> >> Is it possible that a file name can be corrupted? The original backup path
> >> was "\\tcl-fileserver3\backups\moss\daily" I renamed that file to:
> >> "\\tcl-fileserver3\backups\moss\daily_testing" and the backup went thru
> >> fine......
> >> What could be the issue here?
> >>
> >>
> >>
> >>
> >>
>
>sql
Tuesday, February 14, 2012
backup
Hello, I have a backup plan as below:
A. Everyday midnight
Step 1.
USE myDB
BACKUP LOG myDB WITH TRUNCATE_ONLY
DBCC SHRINKFILE(myDB_Log, 1)
Step 2.
USE myDB
SET @.db_backup_path = @.db_backup_path + 'myDB'+ '.bak'
BACKUP DATABASE myDB TO DISK = @.db_backup_path WITH INIT
B. Every 2 hours
USE myDB
SET @.db_myDBlog = @.db_backup_path + 'myDB_log_'+ x + '.trn'
BACKUP LOG myDB TO DISK = @.db_myDBlog
Can I move Step 1 after Step 2( backup database first then shrinkthe dblog)?
Any suggestions about this plan? Thanks.Hi,
No need to shrink the file daily. To restrict the LDF growth you could
perform the transaction log backup every 30 minutes.
This will ensure the LDF will not grow heavily.
So :-
1. Do a full database backup daily once at midnight
2. Do a transaction log every 30 minutes.
Thanks
Hari
SQL Server MVP
"js" <js@.someone@.hotmail.com> wrote in message
news:eUOSH6irFHA.3476@.TK2MSFTNGP10.phx.gbl...
> Hello, I have a backup plan as below:
> A. Everyday midnight
> Step 1.
> USE myDB
> BACKUP LOG myDB WITH TRUNCATE_ONLY
> DBCC SHRINKFILE(myDB_Log, 1)
> Step 2.
> USE myDB
> SET @.db_backup_path = @.db_backup_path + 'myDB'+ '.bak'
> BACKUP DATABASE myDB TO DISK = @.db_backup_path WITH INIT
> B. Every 2 hours
> USE myDB
> SET @.db_myDBlog = @.db_backup_path + 'myDB_log_'+ x + '.trn'
> BACKUP LOG myDB TO DISK = @.db_myDBlog
> Can I move Step 1 after Step 2( backup database first then shrinkthe
> dblog)?
> Any suggestions about this plan? Thanks.
>
>
>|||Thanks for the quick response.
"Hari Pra
" wrote in message :
> No need to shrink the file daily. To restrict the LDF growth you could
> perform the transaction log backup every 30 minutes.
> This will ensure the LDF will not grow heavily.
is it shrink file a bad thing? what situation shrink file is good?
> So :-
> 1. Do a full database backup daily once at midnight
> 2. Do a transaction log every 30 minutes.
What's diff between 30 minutes and 2 hours(except the Frequency)?
Please advice.|||> is it shrink file a bad thing? what situation shrink file is good?
http://www.karaszi.com/SQLServer/info_dont_shrink.asp
> What's diff between 30 minutes and 2 hours(except the Frequency)?
You do more modification during two hours compared to 30 minutes. I.e., you
produce more log records
during a longer time period. Also, more frequent backups allow you to lose l
ess data in the unlikely
event...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"js" <js@.someone@.hotmail.com> wrote in message news:e$Sm8IjrFHA.3884@.TK2MSFTNGP11.phx.gbl..
.
> Thanks for the quick response.
> "Hari Pra
" wrote in message :
> is it shrink file a bad thing? what situation shrink file is good?
>
> What's diff between 30 minutes and 2 hours(except the Frequency)?
> Please advice.
>
>
>
>|||Thanks Tibor,
> You do more modification during two hours compared to 30 minutes. I.e.,
> you produce more log records during a longer time period. Also, more
> frequent backups allow you to lose less data in the unlikely event...
>
Is it use lot of resource (for the end user, they will fell access sql is
slow when backing up log)?|||Whether a log backup will be noticable to users depends on the load of the s
erver and also your disk
layout (if you separated the tlog file, RAID config etc). But if you do log
backup every two hours,
it will take 4 times as long time as if you do it every 30 minutes.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"js" <js@.someone@.hotmail.com> wrote in message news:eevedBnrFHA.3444@.TK2MSFTNGP12.phx.gbl..
.
> Thanks Tibor,
>
> Is it use lot of resource (for the end user, they will fell access sql is
slow when backing up
> log)?
>
>
>|||Thanks Tibor.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:empQRttrFHA.3556@.TK2MSFTNGP10.phx.gbl...
> Whether a log backup will be noticable to users depends on the load of the
> server and also your disk layout (if you separated the tlog file, RAID
> config etc). But if you do log backup every two hours, it will take 4
> times as long time as if you do it every 30 minutes.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> Blog: http://solidqualitylearning.com/blogs/tibor/
>
> "js" <js@.someone@.hotmail.com> wrote in message
> news:eevedBnrFHA.3444@.TK2MSFTNGP12.phx.gbl...
>
A. Everyday midnight
Step 1.
USE myDB
BACKUP LOG myDB WITH TRUNCATE_ONLY
DBCC SHRINKFILE(myDB_Log, 1)
Step 2.
USE myDB
SET @.db_backup_path = @.db_backup_path + 'myDB'+ '.bak'
BACKUP DATABASE myDB TO DISK = @.db_backup_path WITH INIT
B. Every 2 hours
USE myDB
SET @.db_myDBlog = @.db_backup_path + 'myDB_log_'+ x + '.trn'
BACKUP LOG myDB TO DISK = @.db_myDBlog
Can I move Step 1 after Step 2( backup database first then shrinkthe dblog)?
Any suggestions about this plan? Thanks.Hi,
No need to shrink the file daily. To restrict the LDF growth you could
perform the transaction log backup every 30 minutes.
This will ensure the LDF will not grow heavily.
So :-
1. Do a full database backup daily once at midnight
2. Do a transaction log every 30 minutes.
Thanks
Hari
SQL Server MVP
"js" <js@.someone@.hotmail.com> wrote in message
news:eUOSH6irFHA.3476@.TK2MSFTNGP10.phx.gbl...
> Hello, I have a backup plan as below:
> A. Everyday midnight
> Step 1.
> USE myDB
> BACKUP LOG myDB WITH TRUNCATE_ONLY
> DBCC SHRINKFILE(myDB_Log, 1)
> Step 2.
> USE myDB
> SET @.db_backup_path = @.db_backup_path + 'myDB'+ '.bak'
> BACKUP DATABASE myDB TO DISK = @.db_backup_path WITH INIT
> B. Every 2 hours
> USE myDB
> SET @.db_myDBlog = @.db_backup_path + 'myDB_log_'+ x + '.trn'
> BACKUP LOG myDB TO DISK = @.db_myDBlog
> Can I move Step 1 after Step 2( backup database first then shrinkthe
> dblog)?
> Any suggestions about this plan? Thanks.
>
>
>|||Thanks for the quick response.
"Hari Pra
> No need to shrink the file daily. To restrict the LDF growth you could
> perform the transaction log backup every 30 minutes.
> This will ensure the LDF will not grow heavily.
is it shrink file a bad thing? what situation shrink file is good?
> So :-
> 1. Do a full database backup daily once at midnight
> 2. Do a transaction log every 30 minutes.
What's diff between 30 minutes and 2 hours(except the Frequency)?
Please advice.|||> is it shrink file a bad thing? what situation shrink file is good?
http://www.karaszi.com/SQLServer/info_dont_shrink.asp
> What's diff between 30 minutes and 2 hours(except the Frequency)?
You do more modification during two hours compared to 30 minutes. I.e., you
produce more log records
during a longer time period. Also, more frequent backups allow you to lose l
ess data in the unlikely
event...
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"js" <js@.someone@.hotmail.com> wrote in message news:e$Sm8IjrFHA.3884@.TK2MSFTNGP11.phx.gbl..
.
> Thanks for the quick response.
> "Hari Pra
> is it shrink file a bad thing? what situation shrink file is good?
>
> What's diff between 30 minutes and 2 hours(except the Frequency)?
> Please advice.
>
>
>
>|||Thanks Tibor,
> You do more modification during two hours compared to 30 minutes. I.e.,
> you produce more log records during a longer time period. Also, more
> frequent backups allow you to lose less data in the unlikely event...
>
Is it use lot of resource (for the end user, they will fell access sql is
slow when backing up log)?|||Whether a log backup will be noticable to users depends on the load of the s
erver and also your disk
layout (if you separated the tlog file, RAID config etc). But if you do log
backup every two hours,
it will take 4 times as long time as if you do it every 30 minutes.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"js" <js@.someone@.hotmail.com> wrote in message news:eevedBnrFHA.3444@.TK2MSFTNGP12.phx.gbl..
.
> Thanks Tibor,
>
> Is it use lot of resource (for the end user, they will fell access sql is
slow when backing up
> log)?
>
>
>|||Thanks Tibor.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:empQRttrFHA.3556@.TK2MSFTNGP10.phx.gbl...
> Whether a log backup will be noticable to users depends on the load of the
> server and also your disk layout (if you separated the tlog file, RAID
> config etc). But if you do log backup every two hours, it will take 4
> times as long time as if you do it every 30 minutes.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
> Blog: http://solidqualitylearning.com/blogs/tibor/
>
> "js" <js@.someone@.hotmail.com> wrote in message
> news:eevedBnrFHA.3444@.TK2MSFTNGP12.phx.gbl...
>
Labels:
backup,
belowa,
database,
everyday,
log,
microsoft,
midnightstep,
mydb,
mydb_log,
mydbbackup,
mysql,
oracle,
plan,
server,
shrinkfile,
sql,
step,
truncate_onlydbcc
Subscribe to:
Posts (Atom)