Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Performing database backups while users are online? Expand / Collapse
Author
Message
Posted Thursday, August 30, 2012 4:00 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 26, 2014 4:08 AM
Points: 708, Visits: 3,286
Greetings!

Just a quick question this time.

The majority of our users finish work at 5.30 so I suggested to my superior that we should start the daily differential backup job at 6PM.

She said:

Not a good idea, often people are still working at this time. Unless you make it a weekend?

Surely this isn't an issue as we're using SQL Server 2005 and SQL Server 2008 R2?

Thanks.


---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1352081
Posted Thursday, August 30, 2012 4:10 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Today @ 4:44 PM
Points: 338, Visits: 3,282
SQL Server backups of all types are an online operation. Having people working while they occur is no problem ta all. Are you taking log backups throught the day BTW if this is an OLTP system?

I'm a DBA.
I'm not paid to solve problems. I'm paid to prevent them.
Post #1352084
Posted Thursday, August 30, 2012 4:22 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 26, 2014 4:08 AM
Points: 708, Visits: 3,286
andrew gothard (8/30/2012)
SQL Server backups of all types are an online operation. Having people working while they occur is no problem ta all. Are you taking log backups throught the day BTW if this is an OLTP system?


Hi Andrew,

Thanks for your reply.

Please see my previous post from yesterday http://www.sqlservercentral.com/Forums/Topic1351517-146-1.aspx

Sorry I know it's a long read but I am not dealing with an OLTP system.

There are 5 servers (1 SQL Server instance per server) used by the Data Services team. All the databases in these SQL Servers are staging databases used to load data and perform various data cleansing routines and merging etc..

The current setup is like this:

1) fortnightly FULL backups - triggered manually.
2) Scheduled daily differentials at midnight.

So I suggested we schedule to run the fortnightly backups to start at 6PM. I don't see any problem with my suggestion though.

What do you think?


---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1352088
Posted Thursday, August 30, 2012 6:15 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
hope i remember u have space crunch issue for backup.

differential backup is to prevent data loss from the previous full bakup idealy good if it has been done in between the transaction time.

backup will not delay any work happening at that time.



Regards
Durai Nagarajan
Post #1352137
Posted Thursday, August 30, 2012 6:38 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 26, 2014 4:08 AM
Points: 708, Visits: 3,286
durai nagarajan (8/30/2012)
hope i remember u have space crunch issue for backup.

differential backup is to prevent data loss from the previous full bakup idealy good if it has been done in between the transaction time.

backup will not delay any work happening at that time.



Thanks for your input Duria! It seems like it's just you who responds to my questions!

No, we don't have space issues!

What I want to say to the manager is that doing a full backup while people are still working is not an issue. SQL Server has the intelligence to backup the data as well as the necessary transactions so that doing a restore brings back the database in a consistent state. The days of offline backups are long gone surely?! Or am I missing something here?


---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1352156
Posted Thursday, August 30, 2012 6:52 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 8:36 AM
Points: 5,308, Visits: 9,700
Is there any reason you can't schedule your full backup as well? It's correct to say that you can backup with users on the system. However, given that your database isn't in full recovery mode, you want to make sure you capture enough transactions to make your full and differential backups as up-to-date as possible. The best way of doing that is by waiting until the working day is over.... assuming, that is, that you have such well-defined periods of activity.

John

Edit: corrected punctuation
Post #1352166
Posted Thursday, August 30, 2012 7:01 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 26, 2014 4:08 AM
Points: 708, Visits: 3,286
John Mitchell-245523 (8/30/2012)
Is there any reason you can't schedule your full backup as well?


Hi John,

Yes, you are right. There is no reason for this job to be run manually.


It's correct to say that you can backup with users on the system. However, given that your database isn't in full recovery mode, you want to make sure you capture enough transactions to make your full and differential backups as up-to-date as possible. The best way of doing that is by waiting until the working day is over.... assuming, that is, that you have such well-defined periods of activity.



I see what you mean. In that case I will schdule the FULL BACKUP job to run SATURDAY/SUNDAY instead.


---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1352176
Posted Thursday, August 30, 2012 7:10 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, May 30, 2014 8:15 AM
Points: 1,056, Visits: 2,687
[b]Abu Dina (8/30/2012)What I want to say to the manager is that doing a full backup while people are still working is not an issue. SQL Server has the intelligence to backup the data as well as the necessary transactions so that doing a restore brings back the database in a consistent state.


correct .

[b]Abu Dina (8/30/2012)
The days of offline backups are long gone surely?! Or am I missing something here?


Hope offline backup you are specifying backup during non-productio hours.

It is purely based on your company requirement, in our company we have scheduled full backup daily during non- production hours and log backup every hour , so my data loss is max 1 hour. for us the data loss has to be minimal.



Regards
Durai Nagarajan
Post #1352182
Posted Thursday, August 30, 2012 7:17 AM


Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Thursday, June 26, 2014 4:08 AM
Points: 708, Visits: 3,286

Hope offline backup you are specifying backup during non-productio hours.


Sorry I should have used my words more wisely. I know there's no real concept of an offline backup within SQL Server but I actually meant what you're saying! Next time I will refer to it as non-working hours!


---------------------------------------------------------


It takes a minimal capacity for rational thought to see that the corporate 'free press' is a structurally irrational and biased, and extremely violent, system of elite propaganda.
David Edwards - Media lens

Society has varying and conflicting interests; what is called objectivity is the disguise of one of these interests - that of neutrality. But neutrality is a fiction in an unneutral world. There are victims, there are executioners, and there are bystanders... and the 'objectivity' of the bystander calls for inaction while other heads fall.
Howard Zinn
Post #1352193
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse