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
  • 7
    And see this answer for a short guide to common rsync exclusion lists. Commented Jun 26, 2012 at 22:27
  • 2
    On darwin/MacOS, use -rP instead of -aP if you want to recurse. -a is for archiving. Not sure if this changed or if it's just different on MacOS. Commented Jun 2, 2017 at 23:30
  • 1
    rsync does have the option to make it recursive. Example: rsync --recursive -P --exclude=x /folder1/* /folder2/. (Tested only on Ubuntu) Commented Apr 9, 2018 at 10:45