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
 Restoring a Compressed DB Backup is taking long
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

shiyam198
Yak Posting Veteran

94 Posts

Posted - 01/29/2013 :  22:50:04  Show Profile  Reply with Quote
Hi,

I took a backup of a database with "Compressed" selected in "set backup compression".

When I restore it is taking 6 hours for a backup that usually take an hour without compression. Should I be worried?

I used the following command





Regards,
Shiyam


restore database DBBlah
from disk='D:\Shiyamtemp\DBBlah_Jan29.bak' 
WITH MOVE 'DBBlah_Data' TO 'D:\SQLDATA\DBBlah_Jan29.mdf',
MOVE 'DBBlah_Log' TO 'D:\SQLDATA\DBBlah_Jan29.ldf',
replace, recovery, stats=5, maxtransfersize=1048576


This is where it is stuck for atleast 4 hours.


75 percent processed.
80 percent processed.
85 percent processed.
90 percent processed.
95 percent processed.
100 percent processed.
Processed 6162912 pages for database 'DBBlah', file 'DBBlah_Data' on file 1.
Processed 1 pages for database 'DBBlah', file 'Blazon_Log' on file 1.


Tried in 2 different database servers, same deal. Please let me know if this could be an issue?

- Shiyam

prett
Posting Yak Master

USA
181 Posts

Posted - 01/29/2013 :  23:10:25  Show Profile  Visit prett's Homepage  Reply with Quote
Please check this post: http://blog.sqlauthority.com/2011/12/28/sql-server-effect-of-compressed-backup-setting-at-server-level-on-database-backup/

Hope it will help you to understand your issue!!
Go to Top of Page

tkizer
Almighty SQL Goddess

USA
35937 Posts

Posted - 01/29/2013 :  23:52:38  Show Profile  Visit tkizer's Homepage  Reply with Quote
Do you have access to the source database of this backup? If so, check the number of VLFs.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

shiyam198
Yak Posting Veteran

94 Posts

Posted - 01/30/2013 :  08:09:00  Show Profile  Reply with Quote
Thank you so much, both of you.
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.05 seconds. Powered By: Snitz Forums 2000