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

Selective Backups Expand / Collapse
Author
Message
Posted Friday, April 16, 2010 12:29 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, January 12, 2014 10:23 PM
Points: 6, Visits: 51
Hello Everyone,

At our company we have a SQL2000 database that is about 250GB in size that we like to refer to as a "Data Warehouse" (real data warehouse operators would laugh at us). Much of this data is copied every night by dropping, truncating or otherwise clearing a table and then recreating the table again from the source database.

Again, I know - a terrible practice, I didn't build it and I am going to fix it.

ANYWAYS, this duplicated data accounts for 60-70% of the data on the server. The rest of the data is unique, mission critical accumulation over time data.




The question has been raised how we can save money by only backing up the critical data and not the duplicate data (which is backed up by the systems that generate it).


Here is what we have looked into:

1 - Splitting the database apart into two databases.

We can't do this because there is 1000's of references to this database in reports, applications, Excel\VBA and Access crap, basically we aren't allowed to break any connection strings or client code.


2 - Splitting the database into two files and only backing up a single file.

It's just not what this feature was designed to do, all my experiments have failed to bring the database back to an operational state without backing up every file or leaving part of the database inoperable (even experiments on 2005\2008 doing WITH PARTIAL restores).



I was wondering if there were any experienced DBA's out there who had additional ideas beyond these that could help us save disk space by only backing up critical tables.





ALSO: I am considering proposing an upgrade to SQL2008 (and new hardware) and using the new database compression (page\row compression, backup compression, etc...) techniques offered there. Does anyone have an opinion on this?
Post #905111
Posted Friday, April 16, 2010 1:42 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, November 4, 2014 4:59 AM
Points: 1,093, Visits: 2,619
You can also use 3rd party backup software like Quest LiteSpeed, Red Gate SQL Backup Pro or Idera SQL Safe backup which allow you to get a compression of about 70-85%, ie aprox a backup of 50GB.



_______________________________________________________________________
For better assistance in answering your questions, click here
Post #905177
Posted Tuesday, April 20, 2010 8:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 9:20 AM
Points: 137, Visits: 501
Eric,

Options are available to deal with the situation you described.

If you just want to reduce the backup space need, 3rd party tool such as LiteSpeed, Richard mentioned, is great; if you want to do some fix internally, you can create filegroup(s) and move the "duplicate" tables into them, while keeping the mission critical tables in the other filegroup(s) that support the applications. After a full database backup, you can use filegroup backup to back up these critical tables only.

The first method is simple and does not touch database internal. The second option requires work on database architecture and data manipulation, but it will make the database much better.

Good luck.



Post #906906
Posted Tuesday, April 20, 2010 10:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, January 12, 2014 10:23 PM
Points: 6, Visits: 51
I have tried this... splitting the database into two files making a full backup and then a partial backup. The problem that I get is that when I go to restore everything the database is left in a state of partial recovery.

It is always expecting that there is another restore step coming to restore the file that you didn't make a backup of.
Post #907008
Posted Wednesday, April 21, 2010 3:16 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, November 14, 2014 8:26 AM
Points: 2,894, Visits: 3,278
eric, there is a big difference between having a database in two files and having it in two file groups. Please see BOL if you do not understand the difference. You probably need to use file groups to get the functionality you need.

Original author: SQL Server FineBuild 1-click install and best practice configuration of SQL Server 2014, 2012, 2008 R2, 2008 and 2005. 18 October 2014: now over 31,000 downloads.
Disclaimer: All information provided is a personal opinion that may not match reality.
Concept: "Pizza Apartheid" - the discrimination that separates those who earn enough in one day to buy a pizza if they want one, from those who can not.
Post #907569
Posted Wednesday, April 21, 2010 6:22 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, October 27, 2014 8:55 AM
Points: 1,639, Visits: 1,985
What about splitting it into two databases and setting up either views or synonyms to reference the objects that were moved? That should make the change transparent to anything that references them if you use the same name.
Post #907663
Posted Wednesday, April 21, 2010 6:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, January 12, 2014 10:23 PM
Points: 6, Visits: 51
and setting up either views or synonyms to reference the objects that were moved


Hmmm, I might do this in select cases if I get users that absolutley can't change their connection strings for whatever reasons. Very good suggestion. Thankyou.

Problem is it makes this thing more of a kludge than it already is. :D
Post #907676
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse