Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Both solutions appear to copy filenames with spaces, I tested by creating a file with $ touch /tmp/'book title .epub' — rsync version 3.2.7 protocol version 31 Commented Jul 24, 2023 at 13:41
  • Are the newlines and four spaces preceding rsync in the answer intentional? Commented Jul 24, 2023 at 13:43
  • They are intentional but not necessary, @user598527. I use this as a visual indicator that it's a continuation line (and you can enter either pair of lines directly "as is" in any sh-style shell). Since you can use the first suggestion, take it in preference to the second; it will work will all possible filenames whereas the second can only work with a (large) subset of them Commented Jul 24, 2023 at 13:57