Solved

Move and Compress Large SQL DB

Posted on 2013-05-27
8
328 Views
Last Modified: 2013-06-11
I have multiple 1TB+ SQL databases (2k8 R2 Enterprise). I need to move a couple of them to an external vendor.
What is the best way I can move and compress them, i did a sql backup and the size of the DB is the same as it is on disk. I need to be able to compress it to an acceptable size so i can fit it on a flash drive. What is the best approach on to do this?
Thanks
0
Comment
Question by:z969307
  • 3
  • 3
  • 2
8 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
Comment Utility
What is the best way I can move and compress them, i did a sql backup and the size of the DB is the same as it is on disk.
Have you tried compressing the backups?

My suggestion is that you split up the backups and compress (look up the COMPRESSION keyword) in order that they fit.
0
 
LVL 16

Expert Comment

by:DcpKing
Comment Utility
I'm not sure that even compressing a terabyte database will get it down to 64GB - the usual max size for USB drives these days.  It might be a lot easier to just buy an external hard drive (Seagate, for example do backup drive of 1, 2, 3, and 4 TB) and put the backup onto that.
0
 

Author Comment

by:z969307
Comment Utility
yes i did, 7zip compressed it, to around 150GB. yes, i was hoping if there is a way to do some sort of ultra compression to bring it down to a more manageable size, (e.g <65GB).
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 500 total points
Comment Utility
I'm not sure that even compressing a terabyte database will get it down to 64GB
I agree.  However, that is why I stated:
My suggestion is that you split up the backups and compress (look up the COMPRESSION keyword) in order that they fit.
This can all be done from SQL Server without the need for any third party tool.
0
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:z969307
Comment Utility
Ok.i started a new backup of the DB, with compress backup checked from under the Backup Database Options setting. I hope thats what you had meant. I am not a DBA so if you can confirm or provide further directions. I did try this option 1st time around but was getting an error. I just restarted it and it is executing.
0
 
LVL 16

Expert Comment

by:DcpKing
Comment Utility
0
 

Author Comment

by:z969307
Comment Utility
The backup with compress option did reduced the size significantly. I am running a 7zip compression on it and it looks like in the end it will be the same size as my originally compression with 7zip. Any other thoughts besides splitting it up?
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
Comment Utility
Any other thoughts besides splitting it up?
That is really your only choice.  I am referring to SQL Backup's native way of splitting a file and not using some compression software to do it.  Simply put it looks like this:
BACKUP DATABASE YourDatabase
TO DISK = 'e:\YourDatabase1.bak',
DISK = 'e:\YourDatabase2.bak',
DISK = 'e:\YourDatabase3.bak',
...
DISK = 'e:\YourDatabasen.bak'
WITH COMPRESSION

This will split the file up in equal parts spread across multiple backup files.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now