--ignore-existing not as expected

Lasse Kliemann lasse-rsync-2008 at mail.plastictree.net
Fri Feb 22 13:19:35 GMT 2008


Is this correct behavior?

File `foo' gets overwritten with directory `foo', 
even though --ignore-existing is given.


% rsync --version
rsync  version 3.0.0pre10  protocol version 30.PR17
Copyright (C) 1996-2007 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, no ACLs, xattrs, iconv, no symtimes

% mkdir src

% mkdir src/foo

% mkdir dst

% echo bar > dst/foo

% cat dst/foo
bar

% rsync -r --ignore-existing src/ dst

% cat dst/foo                        
cat: dst/foo: Is a directory

% ls -l dst 
total 4
drwxrwx--- 2 x05_sny x05_sny 4096 Feb 22 14:06 foo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20080222/51a409a8/attachment.bin


More information about the rsync mailing list