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 > Task Central - How to remove old backups with it?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-27-10, 04:07
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
Task Central - How to remove old backups with it?

Hello Friends,

My next project is to remove old backups from the local folder.
By now, I am having a daily job that creates an online backup of my databases and puts it into a local folder.

Now I want to have an automatism that removes all the backups that are older than 30 days. Is there anyone that has x-perience with that?

Thanks in advance.

DB_N00b
Reply With Quote
  #2 (permalink)  
Old 07-27-10, 05:39
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
DB2 can do it for you if you don't need your history longer than 30 days.

Number of database backups to retain (NUM_DB_BACKUPS) = 30
Recovery history retention (days) (REC_HIS_RETENTN) = 30
Auto deletion of recovery objects (AUTO_DEL_REC_OBJ) = ON

These settings will remove Entries in the database Historie after 30 Days. If AUTO_DEL_REC_OBJ is set to ON, DB2 will also remove the files (in the filesystem, in TSM or ...). It will also take care of the archive logfiles and will remove logfiles older than the latest backup.
Reply With Quote
  #3 (permalink)  
Old 07-27-10, 06:25
DB_N00b DB_N00b is offline
Registered User
 
Join Date: Jan 2010
Posts: 152
Thanks.
Thats exactly what i was looking for.
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