Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Cleanup in ALEPH

    • Article Type: General
    • Product: Aleph
    • Product Version: 18.01

    Desired Outcome Goal:
    How is cleanup done in ALEPH?

    Procedure:
    You can use util x to clean the different directories on your disk, or you could create a script such as that shown below.

    This script saves files for two weeks (14 days) in the directories below.
    If your disk always gets full and you do not need files in these directories for a full two weeks then reduce the number "14" to less.

    This should be run only by a certified systems administrator.

    # begin script

    setenv KEEP_TMPDIR 14
    setenv KEEP_LOGDIR 14
    setenv KEEP_ALEPHE_SCRATCH 14
    setenv KEEP_ALEPHM_SCRATCH 14
    setenv KEEP_LIBRARY_PRINT 14
    setenv KEEP_LIBRARY_SCRATCH 14
    setenv KEEP_ORACLE_TRACE 14

    ### GLOBAL CLEANUP
    echo "cleaning $TMPDIR..."
    find $TMPDIR -mtime +$KEEP_TMPDIR -exec rm -rf {} \;
    echo "cleaning $LOGDIR..."
    find $LOGDIR -mtime +$KEEP_LOGDIR -exec rm -rf {} \;
    echo "cleaning $alephe_scratch..."
    find $alephe_scratch/* -mtime +$KEEP_ALEPHE_SCRATCH -exec rm -rf {} \;
    echo "cleaning $alephm_scratch..."
    find $alephm_scratch/* -mtime +$KEEP_ALEPHM_SCRATCH -exec rm -rf {} \;

    ### LIBRARIES CLEANUP
    foreach lib (`echo ${ALEPH_LIBS}`)
    eval set library_root = \${$lib}_dev/$lib
    echo "cleaning $library_root/scratch..."
    find $library_root/scratch/* -mtime +$KEEP_LIBRARY_SCRATCH -exec rm -rf {} \;
    echo "cleaning $library_root/print..."
    find $library_root/print/* -mtime +$KEEP_LIBRARY_PRINT -exec rm -rf {} \;
    end

    # end script

    Category: System Management (500)

    Subject: Backup (500)


    • Article last edited: 10/8/2013
    //Feedback