Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. Cleanup in ALEPH

    Cleanup in ALEPH

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Cleaning up Course records **MASTER RECORD**
      • clear_vir01 (hot) doen't complete (still running after 3 hours)
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 18.01
      2. Backup (500)
      3. contype:kba
      4. Prod:Aleph
      5. System Management (500)
      6. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved