samba-bugs at samba.org
2015-Oct-06 21:40 UTC
[Bug 11544] New: doesn't copy files starting with "." in the current directory
https://bugzilla.samba.org/show_bug.cgi?id=11544
Bug ID: 11544
Summary: doesn't copy files starting with "." in the
current
directory
Product: rsync
Version: 3.1.1
Hardware: All
OS: Linux
Status: NEW
Severity: major
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: teo8976 at gmail.com
QA Contact: rsync-qa at samba.org
rsync -avzL --no-o --no-g ./* user at example.org:~/path/to/folder
Expected:
Either it should copy transfer all files in the current directory and
subdirectories recursively, including hidden files (i.e. whose name starts with
a dot) or it may omit by default all hidden files, from both the current
directory and the subdirectories, and you could use an --include rule to
explicitly include hidden files (or there may exist a dedicated option).
Observed: hidden files (whose name starts with a dot) in the current directory
are not sent. However, hidden files in all the subdirectory *are* transferred.
That's inconsistent and doesn't make any sense.
--
You are receiving this mail because:
You are the QA Contact for the bug.
samba-bugs at samba.org
2015-Oct-06 21:42 UTC
[Bug 11544] doesn't copy files starting with "." in the current directory
https://bugzilla.samba.org/show_bug.cgi?id=11544 --- Comment #1 from Kevin Korb <rsync at sanitarium.net> --- Drop the * in your source parameter. -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2015-Oct-06 22:20 UTC
[Bug 11544] doesn't copy files starting with "." in the current directory
https://bugzilla.samba.org/show_bug.cgi?id=11544 --- Comment #2 from teo8976 at gmail.com --- And could you explain how that is the expected behavior? -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2015-Oct-06 22:51 UTC
[Bug 11544] doesn't copy files starting with "." in the current directory
https://bugzilla.samba.org/show_bug.cgi?id=11544 --- Comment #3 from Kevin Korb <rsync at sanitarium.net> --- Simple... source == copy the source directory source/ == copy the contents of the directory source/* == copy everything that your shell globs that wildcard into. IOW, ./* won't copy anything that "echo ./*" doesn't list. Having a * in there also short-circuits --delete. -- You are receiving this mail because: You are the QA Contact for the bug.
samba-bugs at samba.org
2015-Oct-07 04:16 UTC
[Bug 11544] doesn't copy files starting with "." in the current directory
https://bugzilla.samba.org/show_bug.cgi?id=11544
Wayne Davison <wayned at samba.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Wayne Davison <wayned at samba.org> ---
As noted, this is because your shell expands the wildcard.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Apparently Analagous Threads
- [Bug 12386] New: Copy Loop
- [Bug 12378] New: why i cannot exclude dir/files if using option "--files-from"
- [Bug 8020] New: --acls does not honor --numeric-ids if UIDs do not match
- [Bug 10495] New: "skipping directory foo" (does not transfer directories by default)
- [Bug 11423] New: rsync 3.1.x is creating empty backup directories