adrci -age後面的引數單位是分鐘

pentium發表於2019-01-08

echo "INFO: adrci purge started at `date`"
AGE1DAY=1440
AGE7DAYS=10080
AGE10DAYS=14400
AGE15DAYS=21600
AGE30DAYS=43200
PURGETARGET=$AGE7DAYS
RETENTION=$DDAYS

for f in $( adrci exec="show homes" | grep -v "ADR Homes:" )
do
echo "Purging ${f} older than $DDAYS days:"
adrci exec="set home $f; purge -age $PURGETARGET"
done
echo "INFO: adrci purge finished at `date`"

if [ $? != 0 ];then
#      echo "failed"
      continue
   fi
fi

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14377/viewspace-2374977/,如需轉載,請註明出處,否則將追究法律責任。

相關文章