Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Bones: "The man's DEAD, Jim!"


devel / comp.unix.shell / Re: rsync without a destination - what happens?

SubjectAuthor
* rsync without a destination - what happens?Kenny McCormack
+- Re: rsync without a destination - what happens?marrgol
+- Re: rsync without a destination - what happens?Lew Pitcher
`* Re: rsync without a destination - what happens?David W. Hodgins
 `- Re: rsync without a destination - what happens?Kenny McCormack

1
rsync without a destination - what happens?

<svb529$tuan$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=4987&group=comp.unix.shell#4987

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: rsync without a destination - what happens?
Date: Fri, 25 Feb 2022 17:53:13 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <svb529$tuan$1@news.xmission.com>
Injection-Date: Fri, 25 Feb 2022 17:53:13 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="981335"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Fri, 25 Feb 2022 17:53 UTC

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.

--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/IceCream

Re: rsync without a destination - what happens?

<62192039$0$466$65785112@news.neostrada.pl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=4988&group=comp.unix.shell#4988

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: rsync without a destination - what happens?
Newsgroups: comp.unix.shell
References: <svb529$tuan$1@news.xmission.com>
From: marrgol@address.invalid (marrgol)
Date: Fri, 25 Feb 2022 19:30:17 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <svb529$tuan$1@news.xmission.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Lines: 27
Message-ID: <62192039$0$466$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 176.111.237.144
X-Trace: 1645813817 unt-rea-a-02.news.neostrada.pl 466 176.111.237.144:41784
X-Complaints-To: abuse@news.neostrada.pl
X-Received-Bytes: 2040
 by: marrgol - Fri, 25 Feb 2022 18:30 UTC

On 25/02/2022 at 18.53, Kenny McCormack wrote:
> 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.

Yes it does:

»As a special case, if a single source arg is specified without
a destination, the files are listed in an output format similar
to "ls -l".«

--
mrg

Re: rsync without a destination - what happens?

<svb7ao$1pa$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=4989&group=comp.unix.shell#4989

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.unix.shell
Subject: Re: rsync without a destination - what happens?
Date: Fri, 25 Feb 2022 18:31:52 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <svb7ao$1pa$2@dont-email.me>
References: <svb529$tuan$1@news.xmission.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 25 Feb 2022 18:31:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="88187c33dbd73ef0f7b2db8d814a67fb";
logging-data="1834"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19QpuczkRMXmUTaJoBM5ehamS9R1qiFShM="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:P3hQeh+9MATNj6MNqLv2B15Dt+c=
 by: Lew Pitcher - Fri, 25 Feb 2022 18:31 UTC

On Fri, 25 Feb 2022 17:53:13 +0000, Kenny McCormack wrote:

> 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.

Actually, it does. From rsync(1):
As a special case, if a single source arg is specified without a desti-
nation, the files are listed in an output format similar to "ls -l".

> 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.

HTH
--
Lew Pitcher
"In Skills, We Trust"

Re: rsync without a destination - what happens?

<op.1h5s10ina3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=4990&group=comp.unix.shell#4990

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.unix.shell
Subject: Re: rsync without a destination - what happens?
Date: Fri, 25 Feb 2022 13:45:26 -0500
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <op.1h5s10ina3w0dxdave@hodgins.homeip.net>
References: <svb529$tuan$1@news.xmission.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="2b5eaf5230775e2d8f8e8ce344d28e59";
logging-data="18956"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fULskJyLPfSrDXlty1lMpLeXr3hHs79U="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:frgZFdc9I1xRAVX203RL1bC1TCM=
 by: David W. Hodgins - Fri, 25 Feb 2022 18:45 UTC

On Fri, 25 Feb 2022 12:53:13 -0500, Kenny McCormack <gazelle@shell.xmission.com> wrote:

> 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.

Regards, Dave Hodgins

Re: rsync without a destination - what happens?

<svbm7s$u6hs$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=4991&group=comp.unix.shell#4991

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: rsync without a destination - what happens?
Date: Fri, 25 Feb 2022 22:46:20 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <svbm7s$u6hs$1@news.xmission.com>
References: <svb529$tuan$1@news.xmission.com> <op.1h5s10ina3w0dxdave@hodgins.homeip.net>
Injection-Date: Fri, 25 Feb 2022 22:46:20 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="989756"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Fri, 25 Feb 2022 22:46 UTC

In article <op.1h5s10ina3w0dxdave@hodgins.homeip.net>,
David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
....
> From "man rsync" ...
>if you specify no local destination then a listing of the specified
>files on the remote daemon is provided.

OK. Thanks.

The man page is a bit, shall we say, dense.

Anyway, that explains it.

Incidentally, it seems odd to me that it would do this, but I suppose they
did it that way for a reason...

--
The scent of awk programmers is a lot more attractive to women than
the scent of perl programmers.

(Mike Brennan, quoted in the "GAWK" manual)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor