<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<style>
/* Linda's Style playground (c) 2011 L. A Walsh (permission given to
do w/this anything other than claim my original as your own!
-- <a class="moz-txt-link-abbreviated" href="mailto:dept.playgrounds@tlinx.org">dept.playgrounds@tlinx.org</a> )
*/
/* margin:(X):=T+B+R+L; (V H):V=T+B,H=R+L; (T H B):T,H=R+L, (T R B L) */
html, body {
font: 12pt "Lucida Console", monospace, fixed;
font-size-adjust:.50;
background-color:#f8fefb; color:#104060;
max-width:90ex;
}
table, tbody, tr, td {font: inherit;font-size 11.4pt; }
p { margin: 1em; text-indent:1em }
p+p { margin-top: .75em;margin-bottom:.75em }
small { font-size:85.18% }
big { font-size:117.4% }
quote { font-style:italic;
.l quote { font-style:italic; font-family:cursive,sans-serif;}
em { font-variant:small-caps }
h6 { font-size:85.180%/117.398% }
h5 { font-size:100%/132.824% }
h4 { font-size:117.398%/161.803% }
h3 { font-size:132.824%/200.00% }
h2 { font-size:161.803%/234.797% }
h1 { font-size:200.000%/265.648% }
h1, h2, h3, h4, h5 {font-size: inherit; font-weight:bold}
h5, h6 {font-size: inherit; font-variant:small-caps;}
hr {font-family:monospace:fixed; width:90ex; margin:0;left}
h5 {font: inherit; font-weight:800 }
h6 { font: inherit; font-weight:700 }
h1,h2,h3,h4,h5,h6 { margin:1em }
blockquote { margin:1em 1em; font-style:italic; }
blockquote > p, blockquote > blockquote {
margin-top:0.50em;margin-bottom:0.50em; text-indent:0;}
pre
{
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
}
pre, cite { -moz-tab-size:2;-o-tab-size:2;tab-size:2;margin: 1.2em .8em; }
pre, cite, tt {font-style:oblique; background-color:#f6f6f0; color:#202040;
font-family:"Lucida Console", monospace;
}
pre+pre {font-inherit; font-style:oblique;
background-color:#f6f6f0; color:#202040; margin:1ex .8em }
address {font inherit; font-style:oblique; font-family:"Cambria";}
address {font:inherit; margin:1em 3em; background-color:#f8faff;}
address+address {margin:0 2em}
img { margin:1.6em }
q {quotes:"â" "â" "â" "â" }
q:before { content:open-quote }
q:after { content:close-quote }
a, a:link, a:focus, a:visited {text-decoration:underline}
a:link { color:#44BB33 }
a:focus { color: #22FF11 }
a:visited { color: #557722 }
.sig { font: oblique 15.75pt/84pt "Lucida Handwriting",cursive }
.sig:first-letter {
float:left;
font: italic 56pt/84pt "Lucida Calligraphy",cursive;
font-weight:200;
}
#sig_fl {
float:left;font:italic 56pt/84pt "Lucida Calligraphy",cursive;
font-weight:200;
}
@font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face {font-family:Cambria; panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face {font-family:"Lucida Calligraphy"; panose-1:3 1 1 1 1 1 1 1 1 1;}
@font-face {font-family:"Lucida Handwriting"; panose-1:3 1 1 1 1 1 1 1 1 1;}
.MsoNormal, .MsoNormalTab {
padding:0; margin:0; color:"darkmagenta"; background:"honeydew";
font: oblique 100%/100% "Calibri","Verdana","Arial" !important;
}
span.MsoNormal , span.MsoNormalTable {
font-family: inherit !important; font-size: inherit !important; font-style:
inherit !important; color: inherit !important;
}
span[font-family=Arial], span[font-family="Times New Roman"],
font[face=Arial] ,font[face="Times New Roman"] {
font-family: inherit !important; font-size-adjust:inherit !important;
font-size: inherit !important; line-height: inherit !important;
color: inherit !important;
}
</style>
<!-- vim: ts=1 sw=1 et sc fo=cqwa1 tw=78 syntax=css
-->
</head>
<body>
<tt>Matthias Schniedermeyer wrote:</tt>
<blockquote id="mid_20140116003138_GA22769_citd_de"
cite="mid:20140116003138.GA22769@citd.de" type="cite">
<pre wrap=""><!----><tt>- I don't see what your problem is
</tt></pre>
</blockquote>
<tt>---- <br>
It doesn't work as they thought it would?<br>
<br>
That said -- the man page says under "-u":<br>
<br>
-u, --update skip files that are newer on the
receiver<br>
<br>
Technically, directories are not files. Since you used the "-a"
mode<br>
you stated that you wanted owner+group, symlinks, <span class="moz-txt-underscore"><span class="moz-txt-tag">_</span>times<span class="moz-txt-tag">_</span></span>, special files<br>
to all be synchronized. Since -u is documented to only work on files,<br>
it seems correct.<br>
<br>
<br>
</tt>
<blockquote id="mid_20140116003138_GA22769_citd_de"
cite="mid:20140116003138.GA22769@citd.de" type="cite">
<pre wrap=""><tt>But i can only repeat myself. Rsync works unidirectional.</tt></pre>
</blockquote>
<tt>----<br>
rsync uses a bidirection protocol. Perhaps you mean the changes<br>
only happen on 1 side? <br>
<br>
</tt>
<blockquote id="mid_20140116003138_GA22769_citd_de"
cite="mid:20140116003138.GA22769@citd.de" type="cite">
<pre wrap=""><tt> You either copy something or not. Preserving a newer mtime
on target would have to
be activly done by rsync</tt><tt><tt>, which doesn't fall under
"that is unidirectional".</tt></tt></pre>
</blockquote>
<tt>----<br>
Then how does "-u" work with files? If what you say is true, then <br>
how would you preserve a newer mtime on the files on the target?<br>
<br>
That is what "-u" does. Yet you claim this is impossible because<br>
it isn't unidirectional? <br>
<br>
I.e. From a technical standpoint, what would prevent any inode<br>
being treated the same with respect to "--update"? All inodes<br>
have "times" associated with them. Which times may be platform<br>
specific, but within limitations of each platform -- what prevents<br>
the "-u" that works on a file 'inode' from working on a directory
'inode'?<br>
<br>
Honestly -- it surprises me that -u only applies to files<br>
where it could apply to any inode. I can understand if it<br>
isn't implemented on a platform where it doesn't work, but<br>
otherwise... that's odd<br>
<br>
Of note: though equally odd...gnu "cp -au" works<br>
similarly:<br>
<br>
Ishtar:/tmp> tree -guD src dst<br>
src<br>
|-- [law lp Jan 21 9:35] one<br>
`-- [law lp Jan 21 9:32] two<br>
dst<br>
|-- [law tty Jan 21 10:00] one<br>
`-- [law tty Jan 21 9:32] two<br>
> cp -au src/. dst/.<br>
Ishtar:/tmp> tree -guD src dst <br>
src<br>
|-- [law lp Jan 21 9:35] one<br>
`-- [law lp Jan 21 9:32] two<br>
dst<br>
|-- [law lp Jan 21 9:35] one<br>
`-- [law lp Jan 21 9:32] two<br>
<br>
Their manpage also only refers to files:<br>
<br>
-u, --update<br>
copy only when the SOURCE file is newer than the
destination<br>
file or when the destination file is missing</tt>
<blockquote id="mid_20140116003138_GA22769_citd_de"
cite="mid:20140116003138.GA22769@citd.de" type="cite"> </blockquote>
<br>
<br>
</body>
</html>