5

I uploaded a local text file omitting the remote location and can't find the file (Ubuntu 16.04).

rsync -chavzP dump.sql user@ip-address

It's not in my home directory or anywhere else that I can tell:

find / -name dump.sql -print

I can re-upload with a remote location, but would like to at least find and remove that 6GB dump that I'm not using.

6
  • You miss : after user@ip-address. Aug 16 '18 at 19:50
  • Yeah, I used rsync -chavzP dump.sql user@ip-address:/home/user to fix it. So what happened to my first file? According to my terminal it uploaded.
    – ow3n
    Aug 16 '18 at 19:52
  • You should have user@ip-address file in the directory where you ran rsync. Aug 16 '18 at 19:53
  • 1
    Ah! There it is, on my local. Without that : rsync assumed remote credentials was a filename. Thanks @ArkadiuszDrabczyk :-)
    – ow3n
    Aug 16 '18 at 19:55
  • 1
    @ArkadiuszDrabczyk can you please formulate this as an answer and post it? :)
    – Videonauth
    Aug 16 '18 at 19:56
11

You miss : after user@ip-address. Without that you will create user@ip-address file in the directory where you ran rsync.

1
  • Thanks! I found the file (on my local machine) and removed it.
    – ow3n
    Aug 16 '18 at 19:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.