Search code examples
linuxfilesystemsrsync

Where does rsync send files?


I wanted to send a file to server by using:

rsync -avz myfile [email protected]:~/tmp

However, I forget to give the destination folder, just typied:

rsync -avz myfile [email protected]

I cant find it under '/' or my userfolder.

Where did this file go?

Ps. There are too many files on the server, so searching myfile by name takes forever...


Solution

  • You now have a (lokal) copy of myfile named [email protected]. Since the destination did not specify a valid remote location (user@hostname:file) or existing local directory, it was interpreted as a filename.