<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Norbert Preining wrote:<br>
<br>
</div>
<blockquote type="cite"
cite="mid:YDjrq8sYc9aLfS6w@bulldog.preining.info">
<blockquote type="cite">
<pre wrap="">rsync -a --delete --exclude="mactex*" somemirror::/some/path/ /your/local/dir
Not being fully awake, I launched CMD but failed to change directory from C:\Windows\System32 to C:\TeX\Live\2021\Pre-test, and as a result, "rsync" attempted to delete everything in (and under) C:\Windows\System32.
</pre>
</blockquote>
<pre wrap="">
No, no, and again no.
Unless you have a very very strange rsync.
</pre>
<blockquote type="cite">
<pre wrap="">rsync -a --delete --exclude="mactex*" somemirror::/some/path/ /your/local/dir
that will report if the current directory is not empty, and either abort unconditionally or, at the very least, await confirmation from the user that he/she realises that everything in and under the current directory is about to be deleted and is happy with this ?
</pre>
</blockquote>
<pre wrap="">
There is no difference in the call, you probably simply misstyped
something.
(Not that expected anything else from you, though!)
</pre>
</blockquote>
<br>
What you <i>might</i> expect, Norbert, is that I <i>copied-and-pasted</i>
the command from the page cited, and then added the two additional
command-line qualifiers "-L" (symbolic links) and "-v" (verbose) as
recommended on the same page —<br>
<br>
<blockquote type="cite">Add <tt>-v</tt> if you want to see the
names of the files as they
are transferred.
<br>
Add <tt>-L</tt> if your system does not support symbolic links.
</blockquote>
<br>
Here <i>is</i> the command, copied-and-pasted from the very CMD
window into which it was first pasted and then amended —<br>
<ul>
<li>rsync -a -L -v --delete --exclude="mactex*"
texlive.info::tlpretest .</li>
</ul>
<p>And as to "a very very strange rync", my 'rsync' reports :<br>
</p>
<p>
<blockquote type="cite">C:\TeX\Live\2021\Pre-test>rsync
--version<br>
rsync version 3.0.9 protocol version 30<br>
Copyright (C) 1996-2011 by Andrew Tridgell, Wayne Davison, and
others.<br>
Web site: <a class="moz-txt-link-freetext" href="http://rsync.samba.org/">http://rsync.samba.org/</a><br>
Capabilities:<br>
64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long
ints,<br>
no socketpairs, hardlinks, symlinks, IPv6, batchfiles,
inplace,<br>
append, ACLs, xattrs, iconv, symtimes<br>
<br>
rsync comes with ABSOLUTELY NO WARRANTY. This is free software,
and you<br>
are welcome to redistribute it under certain conditions. See
the GNU<br>
General Public Licence for details.</blockquote>
<br>
</p>
<p>Would you care to update your earlier "No, no, and again no" in
the light of this information ?<br>
<i>-- <br>
</i><i>** Phil.</i><br>
<i></i></p>
</body>
</html>