Trailing slash or no trailing slash with an rsync path argument?

Nicely illustrative explanation of trailing slash behavior in rsync:…/to-trailing-slash-or-not-to-trailing-slash-to-rsync-path/


  • An rsync source path with no trailing slash will recreate the top-level directory of the source at the destination.
  • With a trailing slash the subdirectories of the source path are created directly in the target directory.

Tags: ,

Leave a Reply

You must be logged in to post a comment.