<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">Hello Again<br>
<br>
The circumstance where this happens is now known, it is when requests
to the shared in files returns "permission denied" from the file
server... <br>
<br>
Hmmmm...... Any ideas on how to avoid "permission denied" files ?<br>
<br>
Would delete-delayed do the trick, do you think ?<br>
<br>
Thanks in advance<br>
<br>
HC Jehg<br>
</font></font><br>
---------------------<br>
<br>
Hans-Christian Jehg wrote:
<blockquote cite="mid:4ADEDF22.4040300@jehg.dk" type="cite">Hello All
  <br>
  <br>
I have a rather curious problem. I rsync from a fileserver shared in
via cifs. This connection sometimes fails (don't worry, that is not the
question I have).
  <br>
I am not at all sure where it goes wrong, but in the end the result is
that rsync thinks certain files has disappeared. It could for instance
go wrong in the cifs client, but also in rsync when trying to read the
remote file (I am not using --ignore-errors) if no proper read checking
is in place (I do not think that this is the case but I would mention
it anyway).
  <br>
My immediate problem is that rsync proceeds happily and deletes any
vanished files in the end (--delete-after).
  <br>
rsync stops with exit code 24, but by then the damage is already done
(files deleted) .
  <br>
  <br>
The question is: Is there a way to avoid the deletion when vanished
files are detected? That would be "no deletion at all" or just "no
deleting of vanished files".
  <br>
  <br>
Best regards
  <br>
  <br>
Hans-Chr. Jehg
  <br>
  <br>
rsync&nbsp; version 3.0.2&nbsp; protocol version 30
  <br>
Copyright (C) 1996-2008 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>
&nbsp;&nbsp; 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
  <br>
&nbsp;&nbsp; socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
  <br>
&nbsp;&nbsp; append, ACLs, xattrs, iconv, no symtimes
  <br>
  <br>
on Mandriva 2009
  <br>
  <br>
  <br>
rsync --modify-window=2 --times --omit-dir-times --verbose --stats
--recursive --partial-dir=.rsync-partial --include "some includes"
--exclude "*" --compress -e "ssh -o ServerAliveInterval=10 -p 22"
--delete --delete-after <a class="moz-txt-link-rfc2396E" href="mailto:user@server.tld:~/somedirectory/">"user@server.tld:~/somedirectory/"</a>
"/data/user/somedirectory/"
  <br>
  <br>
</blockquote>
</body>
</html>