0

This is my rsync command

rsync --delete /src-dirname /dest-dirname

This creates

/dest-dirname/src-dirname

at the destination.

What I want is to sync all files and directories underneath /src-dirname to /dest-dirname,

This could be done by adding /* to the source, but at the same time --delete would no longer delete subdirectories at the destination (see rsync won't delete files on destination).

Any ideas how to achieve that?

1 Answer 1

1

Have you tried without /* ? Please try the below command. You are missing / at the end. rsync --delete /src-dirname/ /dest-dirname Let us know if this worked too

1
  • Great! Using / instead of /* solves the problem.
    – BetaRide
    Dec 4, 2014 at 7:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .