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.

4
  • So you want to remove all *.Trash* directories that were already copied? Commented Aug 19, 2017 at 11:23
  • @Arkadiusz, YES. I would welcome a command that would seek and destroy all of them on the original. I'll alter the question to include that in case you are willing to post it as an answer. It would really help a lot with the immediate problem, even if it doesn't fix rsync. TNX
    – SDsolar
    Commented Aug 19, 2017 at 23:09
  • Well how about the --delete-before and/or --delete-after options as mentioned on the Rsync - Man. I think the Robocopy function you are referring to is the /PURGE option and I think one of those two or maybe both will do what you need—simple enough to test. Commented Aug 20, 2017 at 1:43
  • Yes, /purge is implied with /mir in robocopy. That is what I want to accomplish. But any --delete switch is not applied to anything in --exclude
    – SDsolar
    Commented Aug 20, 2017 at 4:20