[Bug 11544] New: doesn't copy files starting with "." in the current directory

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 11544] New: doesn't copy files starting with "." in the current directory

samba-bugs
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: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

rsync -avzL --no-o --no-g ./*  [hidden email]:~/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.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 11544] doesn't copy files starting with "." in the current directory

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11544

--- Comment #1 from Kevin Korb <[hidden email]> ---
Drop the * in your source parameter.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 11544] doesn't copy files starting with "." in the current directory

samba-bugs
In reply to this post by samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11544

--- Comment #2 from [hidden email] ---
And could you explain how that is the expected behavior?

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 11544] doesn't copy files starting with "." in the current directory

samba-bugs
In reply to this post by samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11544

--- Comment #3 from Kevin Korb <[hidden email]> ---
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.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|

[Bug 11544] doesn't copy files starting with "." in the current directory

samba-bugs
In reply to this post by samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11544

Wayne Davison <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Wayne Davison <[hidden email]> ---
As noted, this is because your shell expands the wildcard.

--
You are receiving this mail because:
You are the QA Contact for the bug.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html