If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Online backup with compress option

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-15-10, 18:32
db2user24 db2user24 is offline
Registered User
 
Join Date: Nov 2007
Posts: 248
Online backup with compress option

Hi,

I just tried an online backup of our database ( around 67GB in size) with the 'COMPRESS' option.. here is the command --

time db2 backup database dbname online to /path1/path2 COMPRESS include logs

The backup image came out to be 22GB in size.. def. a big drop from the original. Do I need to give any other keyword when I restore the database from the Compressed image? Or will the regular command that I run to restore work... here is the command that I usually run ---

db2 restore db dbname from /path1/path2/ taken at logtarget /home/db2inst/logs/ REPLACE EXISTING
Reply With Quote
  #2 (permalink)  
Old 04-15-10, 19:17
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
No, you do not need to include any reference to compression when you restore if you used the default compression library (you did) during backup.

Sometimes, when you restore to different DB2 release, it can casue a problem in this regard, but it can be fixed in those cases. This only occurs in certain situaitons, and not every different release.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 04-16-10, 09:15
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Side question. Shop where I am right now does not do db backups. So, it has been a while for me. Looking at the info provided by original poster is it safe to say that COMPRESS option would cut db image by 1/3 of db size as a general rule? I know noone can guaranty it, but what is the avg expectation?

Thank you
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #4 (permalink)  
Old 04-16-10, 13:53
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by Cougar8000 View Post
Side question. Shop where I am right now does not do db backups. So, it has been a while for me. Looking at the info provided by original poster is it safe to say that COMPRESS option would cut db image by 1/3 of db size as a general rule? I know noone can guaranty it, but what is the avg expectation?

Thank you
Compress option will usually cut size of backup image by more than a third.

Not sure what you mean by "Shop where I am right now does not do db backups." Does that mean someone else does them for you, or does it mean you have a standing job offer from another company any thime you want it?
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 04-16-10, 16:26
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by Marcus_A View Post
Compress option will usually cut size of backup image by more than a third.

Not sure what you mean by "Shop where I am right now does not do db backups." Does that mean someone else does them for you, or does it mean you have a standing job offer from another company any thime you want it?
I am not sure how much more I should go into it

Thank you for the sizing info
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #6 (permalink)  
Old 04-19-10, 03:38
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Cool.. No alerts for backup failures in the middle of the night ..

Quote:
Originally Posted by Cougar8000 View Post
Shop where I am right now does not do db backups.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On