<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Does rsync provide a way to remove files at the source that are
present on the destination, without first transferring the files?<br>
<br>
I run the same task on several computers that copy the results to a
server. Once the material is copied, it should be deleted at the
source on all the machines.<br>
<br>
Say A and B run the same task. A finishes first and copies the
result to server C. When B finishes, the results are already present
on C and B should just delete its results.<br>
<br>
I thought I could use <br>
<br>
--remove-source-files sender removes synchronized files
(non-dir)<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
--ignore-existing skip updating files that exist on
receiver<br>
<br>
but in my tests, this only removes files after they have been
synchronized from that machine.<br>
<br>
In other words, in the scenario above when B issues<br>
<br>
rsync ~/job44 C:~/jobs/ -av --remove-source-files
--ignore-existing<br>
<br>
and all the job44 files are already present, these files (not the
directory) should be removed on the source, but they are not.<br>
<br>
From the man page, it sounds like rsync has this functionality, but
in practice it appears not to have it. Am I missing something or
should I be using other flags?<br>
<br>
Cheers,<br>
Dave<br>
</body>
</html>