ArcticMediaRyan
ArcticMediaRyan

Reputation: 885

Using rsync command with email address

I am trying to use rsync on my mac. When I normally type out a command I am only using user for a username. However, this time my USERNAME is [email protected]. How do I use an email address as a username in an rsync command?

The command I am trying to do is

rsync -rva /directory/that/is/local [email protected]@host.domain.com:/another/remote/directory

The other option I could work with is a rsync client for OSX. But I can't see that as being the long term solution when linux uses rsync for a lot!

Thanks for your help

Upvotes: 1

Views: 814

Answers (1)

ymonad
ymonad

Reputation: 12100

try

rsync -rva -e 'ssh -l [email protected]' /directory/that/is/local host.domain.com:/another/remote/directory

Upvotes: 2

Related Questions