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 > DB2 scheduled backup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-04, 16:56
alesm alesm is offline
Registered User
 
Join Date: Dec 2004
Posts: 6
Question DB2 scheduled backup

Hello!

I'm planning an scheduled online backup on DB2 UDB 8.2. I'm thinking of having online backup once a day and keep only logs and backup images for past few days. Can anyone post me an DB2 command script which does something like this (with automatic deletion of old images)?
Reply With Quote
  #2 (permalink)  
Old 12-16-04, 09:44
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
What is your OS?
Reply With Quote
  #3 (permalink)  
Old 12-17-04, 04:06
alesm alesm is offline
Registered User
 
Join Date: Dec 2004
Posts: 6
We have DB2 on Windows XP.

I have archived logs stored in a different directory using LOGARCHMETH1 and LOGARCHMETH2 parameter. Backups are also stored on local disks. I would like to create a script to delete all unnecessary files for restore older than 3 days. I know that log files can be deleted with PRUNE HISTORY command.

I have also one question about log size. We have log file size so big that all logs from one are stored in a single log file. What are the recommendations? Is it better to have smaller files, so that logs are archived more frequently?

Thank’s for your time,
Ales

Last edited by alesm; 12-17-04 at 06:11.
Reply With Quote
  #4 (permalink)  
Old 12-17-04, 06:51
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
db2 backup

do not forget that with online backup you MUST have the logfiles otherwise after restore, you can not lget out of rollforwarding pending state.
take from time to time an offline backup.
Best Regards, Guy Przytula
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #5 (permalink)  
Old 12-17-04, 08:13
alesm alesm is offline
Registered User
 
Join Date: Dec 2004
Posts: 6
We are planning one or two full offline backups a month.

Best Regards, Ales
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