ReaR: How to specify an alternate build directory than /tmp

Solution Verified - Updated -


  • 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


  • Red Hat Entreprise Linux
    • rear 1.17
    • rear 2.00
    • rear 2.4.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In