https://bugzilla.samba.org/show_bug.cgi?id=12386
Bug ID: 12386
Summary: Copy Loop
Product: rsync
Version: 3.1.3
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: crysanthus at gmail.com
QA Contact: rsync-qa at samba.org
If you use .* as a rsync source it will be looped until end of disk
ie.
rsync -rvhIW crp/.* rohanamobile/public/
--
You are receiving this mail because:
You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=12386 --- Comment #1 from Kevin Korb <rsync at sanitarium.net> --- That isn't a bug you are using it wrong. drop the .* and it will do what you expect. There should almost never be a * in the source parameter. Also, don't rsync without --times unless you have a really good reason. -- You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=12386
Wayne Davison <wayned at samba.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Wayne Davison <wayned at samba.org> ---
You'd probably be better served by asking about something like this on the
mailing list, as there is no issue with .* concerning rsync -- this is entirely
a shell issue.
In this instance you're probably using bash, which is so stupid that it
expands
".*" to include "..", which is obviously not what you want.
I personally use
zsh, which doesn't have this issue.
When using bash, you could instead try a "path/.??*" (if all your dot
files are
at least 2 chars after the dot) or something like ".[a-z]*" (though
you might
also need A-Z and 0-9 etc added).
--
You are receiving this mail because:
You are the QA Contact for the bug.
Possibly Parallel Threads
- --include option
- [Bug 11726] New: --copy-links cause rsync to fail with ancestor symlink (..)
- [Bug 10951] New: Emtpy parameter triggers unwanted behavior, but no error message
- [Bug 13522] New: Patch fileflags.diff and crtimes.diff
- [Bug 10568] New: --copy-links Fails if link name has more than 32 chars