default destination of files with no :/ path on the server

Adrian Levi adrian.levi at gmail.com
Fri May 13 19:08:49 MDT 2011


On 14 May 2011 11:02, Matt McCutchen <matt at mattmccutchen.net> wrote:
> On Sat, 2011-05-14 at 10:24 +1000, Adrian Levi wrote:
>> I have accidentally uploaded some files to a VPS server using rsync
>> through an ssh transport mechanism. I used the following command to
>> upload the files:
>> rsync -avzh --progress /srv/source-path root at server
>> [...]
>
> That destination is a local path.  The files will be left in a directory
> named "source-path" in rsync's working directory.

Yes, I did some further testing and realised as such, I am a klutz.
jupiter:/# dd if=/dev/zero of=./test.img bs=1k count=1024
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.0134864 s, 77.8 MB/s
jupiter:/# ls -lah ./test.img
-rw-r--r-- 1 root root 1.0M May 14 10:56 ./test.img
jupiter:/# rsync -avh --progress ./test.img root at caprica.allsocool.com
sending incremental file list
test.img
      1.05M 100%   32.29MB/s    0:00:00 (xfer#1, to-check=0/1)

sent 1.05M bytes  received 31 bytes  2.10M bytes/sec
total size is 1.05M  speedup is 1.00
jupiter:/#


jupiter:/# dd if=/dev/zero of=./test2.img bs=1k count=1024
1024+0 records in
1024+0 records out
1048576 bytes (1.0 MB) copied, 0.0133302 s, 78.7 MB/s
jupiter:/# ls -lah ./test2.img
-rw-r--r-- 1 root root 1.0M May 14 10:59 ./test2.img
jupiter:/# rsync -avh --progress ./test2.img root at caprica.allsocool.com:/srv/
The authenticity of host 'caprica.allsocool.com (175.107.149.211)'
can't be established.
RSA key fingerprint is (key fingerprint).
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'caprica.allsocool.com,175.107.149.211'
(RSA) to the list of known hosts.
sending incremental file list
test2.img
      1.05M 100%   44.03MB/s    0:00:00 (xfer#1, to-check=0/1)

sent 1.05M bytes  received 31 bytes  38.14K bytes/sec
total size is 1.05M  speedup is 1.00
jupiter:/#

Actually that got me thinking...
jupiter:/# find / -name root at caprica.allsocool.com -print
/root at caprica.allsocool.com
/home/adrian/root at caprica.allsocool.com
jupiter:/#

The egg is on my face, Sorry for any inconvenience caused, I think you
can safely close this ticket. ;-) No files were transfered anywhere
except to the named file on my original pc
"root at caprica.allsocool.com" embarrasing.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


More information about the rsync mailing list