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 > how do you clean up old db2 backups on aix?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-05-04, 16:01
chinatrain99 chinatrain99 is offline
Registered User
 
Join Date: Sep 2003
Posts: 73
how do you clean up old db2 backups on aix?

does anyone have a shell script that will clean up db2 backups that are older than X months old? I'm trying to write one but I don't know enough about aix shell scripts to do it. Also, in a shell script command, you can run a db2 command like:

var1='select current date from sysibm.sysdummy1'

and this will put the current date into variable var1

what delimeter do I use to build a literal within the db2 script? the " doesn't work, but if you look at the following script, you'll see what I want to do:

var1=' select "today is: " concat select current date from sysibm.sysdummy1'
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