I recently ran the following command:
$ rsync -avxH remotesystem:path/to/something
I.e., I forgot to put "." at the end of the line, to copy the stuff from
the remote system to the current directory.
The result of the above command was that it listed all the files (and subdirectories and files in the subdirectories and so on), in the same
manner and format that it would if it was copying them somewhere, but
(and here's the key!) nothing was copied. I was shocked to see that
after the command finished, the current directory was (still) empty. As
far as I can tell nothing was changed - either on the local or the
remote system(s).
So, what is the above command supposed to do? "man rsync" shows that
the "DEST" argument is optional, but doesn't say what happens if it is omitted.
As far as I can tell, there aren't any examples in "man rsync" that omit DEST.
Note: When I re-ran the above command with "." at the end, it performed
as expected.
I recently ran the following command:
$ rsync -avxH remotesystem:path/to/something
I.e., I forgot to put "." at the end of the line, to copy the stuff from
the remote system to the current directory.
The result of the above command was that it listed all the files (and subdirectories and files in the subdirectories and so on), in the same
manner and format that it would if it was copying them somewhere, but (and here's the key!) nothing was copied. I was shocked to see that after the command finished, the current directory was (still) empty. As far as I can tell nothing was changed - either on the local or the remote system(s).
So, what is the above command supposed to do? "man rsync" shows that the "DEST" argument is optional, but doesn't say what happens if it is omitted.
I recently ran the following command:
$ rsync -avxH remotesystem:path/to/something
I.e., I forgot to put "." at the end of the line, to copy the stuff from
the remote system to the current directory.
The result of the above command was that it listed all the files (and subdirectories and files in the subdirectories and so on), in the same
manner and format that it would if it was copying them somewhere, but (and here's the key!) nothing was copied. I was shocked to see that after the command finished, the current directory was (still) empty. As far as I can tell nothing was changed - either on the local or the remote system(s).
So, what is the above command supposed to do? "man rsync" shows that the "DEST" argument is optional, but doesn't say what happens if it is omitted. As far as I can tell, there aren't any examples in "man rsync" that omit DEST.
Note: When I re-ran the above command with "." at the end, it performed as expected.
From "man rsync" ...
if you specify no local destination then a listing of the specified
files on the remote daemon is provided.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 22:30:01 |
Calls: | 6,667 |
Calls today: | 1 |
Files: | 12,216 |
Messages: | 5,337,359 |