Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionRedHatBugMonkey
2011-01-27 18:34:18 UTC
Description of problem:
rsync --delete fails to function on local directories
Version-Release number of selected component (if applicable):
rsync-3.0.6-5.el6.x86_64
How reproducible:
have a destination directory with extra files present, attempt to rsync into destination directory using rysnc with --delete option.
Steps to Reproduce:
1. ...
2.
3.
Actual results:
rhbm@rhel6:~ >ls -l
total 8
drwxrwxr-x. 2 rhbm rhbm 4096 Jan 27 12:27 dest
drwxrwxr-x. 2 rhbm rhbm 4096 Jan 27 12:22 src
rhbm@rhel6:~ >ls -lR
.:
total 8
drwxrwxr-x. 2 rhbm rhbm 4096 Jan 27 12:27 dest
drwxrwxr-x. 2 rhbm rhbm 4096 Jan 27 12:22 src
./dest:
total 4
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 garbage
./src:
total 12
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file1
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file3
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file7
rhbm@rhel6:~ >rsync -aHv --delete src/file* dest/.
sending incremental file list
file1
file3
file7
sent 5330 bytes received 69 bytes 10798.00 bytes/sec
total size is 5136 speedup is 0.95
rhbm@rhel6:~ >ls -lR
.:
total 8
drwxrwxr-x. 2 rhbm rhbm 4096 Jan 27 12:27 dest
drwxrwxr-x. 2 rhbm rhbm 4096 Jan 27 12:22 src
./dest:
total 16
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file1
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file3
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file7
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 garbage
./src:
total 12
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file1
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file3
-rw-r--r--. 1 rhbm rhbm 1712 Jan 27 12:22 file7
Expected results:
that the file garbage is removed from the destination directory.
Additional info:
User Error. The man page explains fully under the expanded --delete info.
Comment 3RHEL Program Management
2011-01-27 19:08:28 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.