ReaR temporary build directory is included in backup when TMPDIR is defined in configuration

Solution Verified - Updated -

Issue

  • When explicitly defining the TMPDIR environment variable in /etc/rear/{local,site}.conf, ReaR doesn't exclude the temporary build directory from the backup

    # grep -w TMPDIR /etc/rear/site.conf
    export TMPDIR=/temporary
    
    # rear mkbackup
    
    # tar tzvf /path/to/the/backup.tar.gz | grep "^temporary/rear"
    drwxr-xr-x root/root                0 2018-12-04 10:44 temporary/rear.XXX
    

Environment

  • Red Hat Enterprise Linux
    • rear 1.17
    • rear 2.00
    • rear < 2.4-7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content