Leff
Leff

Reputation: 1276

How to rsync from remote properly?

I am trying to sync a remote directory to the local system directory wimagasin inside the htdocs on the mamp server.

I ran the command from my local htdocs directory:

rsync -avr [email protected]:public_html/wimagasin.se wimagasin

But when the command is run, the sync creates completely new directory wimagasin.se inside my local wimagasin directory. I am not sure what is the right way to do this?

Upvotes: 0

Views: 98

Answers (1)

clemens
clemens

Reputation: 17711

You should just append a slash at the source:

rsync -avr [email protected]:public_html/wimagasin.se/ wimagasin

Upvotes: 1

Related Questions