Bug 961623 - rlFileBackup --clean is not safe,
Summary: rlFileBackup --clean is not safe,
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: beakerlib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Muller
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-10 05:56 UTC by JianHong Yin
Modified: 2016-09-20 02:09 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-23 11:46:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description JianHong Yin 2013-05-10 05:56:11 UTC
Description of problem:
  In rhel7
  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

How reproducible:
always

Steps to Reproduce:
1. In rhel7.
2. rlFileBackup --clean /etc
3. rlFileRestore
  
Actual results:
system crash. keyboard/ping no response.

Expected results:
system normal.

Additional info:

Comment 1 JianHong Yin 2013-05-10 05:57:17 UTC
 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.

Comment 2 Petr Muller 2013-05-23 11:46:36 UTC
Not inclined to fix this. --clean performs exactly what it is documented to do:

--clean
           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.


Note You need to log in before you can comment on or make changes to this bug.