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?