SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Restore from bak file asks for too much free space
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bvprasad
Starting Member

USA
3 Posts

Posted - 01/21/2010 :  16:48:02  Show Profile  Reply with Quote
I am trying to RESTORE from a .bak file which is 31GB. It is asking for 360GB (12 times the bak file size) as free space, which I don't have. Is there a way I can reduce the free space requirement?

Thanks
Prasad

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 01/21/2010 :  16:54:14  Show Profile  Visit russell's Homepage  Reply with Quote
You can do a RESTORE FILELISTONLY to see file sizes of actual database files in the backup.

But if you don't have the disk space, you don't have it.

Possible you can shrink the original db, then take new backup, but that probably won't be a good idea, depending on the nature of the original db
Go to Top of Page

Kristen
Test

United Kingdom
22431 Posts

Posted - 01/22/2010 :  01:40:40  Show Profile  Reply with Quote
RESTORE will pre-create files that are the same size of the originals, regardless of what size the BAK file is. That's why your restore is looking for 360GB.

If you have a 360GB database with 31GB of data in it (assuming your BAK file is not compressed) then I think you NEED to shrink the original as it sounds like it hasn't had much in the way of housekeeping!
Go to Top of Page

bvprasad
Starting Member

USA
3 Posts

Posted - 01/22/2010 :  19:11:24  Show Profile  Reply with Quote
Thanks for the responses. I finally added an external 500GB hard drive, restored to the new drive. Here are the stats:
Space allocated: 259GB
Space free: 227GB (87%)

After shrink db:
Space allocated: 161GB
Space free: 131GB (81%)
Go to Top of Page

Kristen
Test

United Kingdom
22431 Posts

Posted - 01/23/2010 :  01:09:59  Show Profile  Reply with Quote
So you could shrink it some more?, if you need to ...
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 01/25/2010 :  20:17:17  Show Profile  Reply with Quote
It's because your log file was huge. You need to shrink log file and again back it up.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000