Karl:

In backup scripts I do the following:

# remove any local archives over 10 days old
echo "Removing 10 days old local archive file(s)..."
find $LOCAL_ARCHIVE -name '*.tgz' -mtime +10 -exec rm {} \;
find $LOCAL_ARCHIVE -name '*.bkf' -mtime +10 -exec rm {} \;
find $LOCAL_ARCHIVE -name '*.rar' -mtime +10 -exec rm {} \;
echo "Ten day old local archives removed from disk on `date`" >> $LOG_FILE

...which cleans up the older backup files.

Hope this helps.

Bill 

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of
>[EMAIL PROTECTED]
>Sent: dinsdag 21 augustus 2007 15:55
>To: u2-users@listserver.u2ug.org
>Subject: [U2] AIX Argument list too long
>
>Hi all.
>
>This is a bit off-topic, but I believe the expertise is here. . .
>
>I have routines that parse through Unix files in a directory and remove
>them based on age. If the number of files exceeds some limit I've not been
>able to narrow down, I get a response from the scripts that it can't do
>the job because there's too many files in the directory.
>
>Does anyone know:
>
>1. what I'm talking about and what causes it?
>
>2. how to solve this through some tunable parameter, preferrably not
>requiring a kernel rebuild?
>
>TIA,
>
>-- 
>Karl Pearson
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to