orphan dirs and files with --delete
Tim Conway
conway at us.ibm.com
Tue Mar 23 00:04:14 GMT 2004
--force force deletion of directories even if
not empty
SunOS 5.8 Last change: 26 Jan 2003 7
User Commands rsync(1)
That should do it.
Tim Conway
Unix System Administration
Contractor - IBM Global Services
desk:3032734776
conway at us.ibm.com
rsync (2.5.[67]) --delete fails on dirs with the w bit cleared. (example
below)
Rsync will sync a dir with w bit clear, but will not remove it with
--delete.
This is not a big problem, but it will create situations where there are
'orphaned' files.
Has anyone else had this problem?
It looks like a change would be needed in robust_unlink (util.c). This
function
would have to do a chmod on dirs that are locked down before it does the
unlink.
(syncing as user root doesn't have this problem)
More information about the rsync
mailing list