calculate_req_space too dumb #2221
Labels
fixed / solved / done
needs sponsorship
This issue will not get solved on a voluntary base by ReaR upstream.
support / question
ReaR version ("/usr/sbin/rear -V"): 2.4 / Git
OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"): rhel7.7
ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
Hardware (PC or PowerNV BareMetal or ARM) or virtual machine (KVM guest or PoverVM LPAR): baremetal x86_64 PC
Description
Backups fail prematurely due to incorrect target disk size calculations. As of right now (2.4), the corresponding script (
backup/RSYNC/default/450_calculate_req_space.sh
) simply looks at thedf
output of local partitions, disregarding any excluding items from the config files. The script doesn't even take into account any reasonably default locations for partitions;e.g.
udisks2
uses/run/media/username/
to auto-mount trivial partitions. These should be excluded by default.What's even worse, there is no way to exclude this at the moment at all, as evidenced by my attempt to exclude items in. Consequently, rear fails with errors/run/*
For the time being, there is an option to exclude these by using the
EXCLUDE_MOUNTPOINTS()
option in the config file.The text was updated successfully, but these errors were encountered: