problem with the delete option
Wayne Davison
wayned at samba.org
Fri Jan 26 15:36:41 GMT 2007
On Mon, Jan 22, 2007 at 08:18:52PM -0300, Manuel Kissoyan wrote:
> ok, i did add the -vv and it simply not running any delete command, the
> only thing close to that is lines like this:
You need a third -v to see mentions of where rsync is deleting. It will
say "delete_in_dir(DIRECTORY)" for every directory whose contents is
being transferred. You should also look for the make_file() calls from
the generator, which is the directory reading on the sending side that
is used for deletions. If you see a message about a file being
protected, that indicates that your exclude options have ensured that
that particular file cannot be deleted.
> so basicaly rsync is not deleting the files that are not there in the
> sending side.
If you weren't using --files-from, I would have said that you were being
bitten by this bug:
- Fixed a recent bug where --delete was not working when transferring
from the root (/) of the filesystem with --relative enabled.
With the --files-from option, I can't duplicate your problem, so it is
probably a case of you expecting rsync to delete in a directory that it
is not sending or your not expecting an exclude to protect a file from
deletion. If not, please let us know what you discover.
..wayne..
More information about the rsync
mailing list