Precedence of BACKUP_PROG_EXCLUDE over BACKUP_PROG_INCLUDE

Solution Verified - Updated -

Issue

  • Directories mentioned in BACKUP_PROG_INCLUDE not included while taking backup in ReaR.
  • /opt/application is included in BACKUP_PROG_INCLUDE in /etc/rear/site.conf but not getting included while taking backup.
# cat /etc/rear/site.conf
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=nfs://192.168.56.1/storage
BACKUP_PROG_EXCLUDE=( "${BACKUP_PROG_EXCLUDE[@]}" '/tmp/*' '/proc/*' '/sys/*' '/dev/*' '/opt/*' )
BACKUP_PROG_INCLUDE=( "{BACKUP_PROG_INCLUDE[@]}" '/opt/application' '/tmp/source' )

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9 Beta

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