Red Hat Bugzilla – Bug 961623
rlFileBackup --clean is not safe,
Last modified: 2016-09-19 22:09:52 EDT
Description of problem:
Use rlFileBackup --clean /etc, and then restore, the system crash.
Version-Release number of selected component (if applicable):
RHEL-7.0-20130306.0 Workstation x86_64
Steps to Reproduce:
1. In rhel7.
2. rlFileBackup --clean /etc
system crash. keyboard/ping no response.
rm -rf the cleanup file/dir is not good idea.
It's safer that traversal all file, if no exist in backup dir then delete.
Not inclined to fix this. --clean performs exactly what it is documented to do:
If this option is provided (have to be first option of the command), then
file/dir backuped using this command (provided in next options) will be
(resursively) removed before we will restore it.
If something is not safe to remove at all, do not call --clean on it.