The Samba-Bugzilla – Attachment 15235 Details for
Bug 13991
rsync --delete --one-file-system skips deletes after crossing filesystems on destination.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Commands to demonstrate further problem
testb (text/plain), 1.25 KB, created by
Bruce Arden
on 2019-06-10 08:22:29 UTC
(
hide
)
Description:
Commands to demonstrate further problem
Filename:
MIME Type:
Creator:
Bruce Arden
Created:
2019-06-10 08:22:29 UTC
Size:
1.25 KB
patch
obsolete
>## Setup environment in lvm >## test1 is a filesystem in the source >## test1 and test1/test11 are filesystems in the destination > >cd /tmp >VG=vg_ardenkvm > >mkdir testsrc > >lvcreate -l 1 -n lvtestsrc1 $VG >mkfs /dev/$VG/lvtestsrc1 >mkdir testsrc/test1 >mount /dev/$VG/lvtestsrc1 testsrc/test1 > >mkdir testsrc/test1/test11 testsrc/test2 >touch testsrc/deleteme testsrc/test1/deleteme1 testsrc/test2/deleteme2 testsrc/test1/test11/deleteme11 > >mkdir testdst > >lvcreate -l 1 -n lvtestdst1 $VG >mkfs /dev/$VG/lvtestdst1 >mkdir testdst/test1 >mount /dev/$VG/lvtestdst1 testdst/test1 > >lvcreate -l 1 -n lvtestdst11 $VG >mkfs /dev/$VG/lvtestdst11 >mkdir testdst/test1/test11 >mount /dev/$VG/lvtestdst11 testdst/test1/test11 > >## First sync with no problems >## We copy both source file systems > >/bin/rsync -axv --del testsrc/. testsrc/test1 testdst/. >find testsrc -type f -print >find testdst -type f -print > >\rm testsrc/deleteme testsrc/test1/deleteme1 testsrc/test2/deleteme2 testsrc/test1/test11/deleteme11 > >## Second sync that should delete files > >/bin/rsync -axv --del testsrc/. testsrc/test1 testdst/. > >## Show that test1/test11/deleteme11 and test2/deleteme2 are left in the destination >## Note that test2/deleteme2 is in the original file system > >find testsrc -type f -print >find testdst -type f -print >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13991
: 15235