preserve ctimes of *unchanged* directories on receiver

Lasse Kliemann lasse-rsync-2008 at mail.plastictree.net
Tue Mar 4 11:21:01 GMT 2008


'rsync -a' updates the ctime on a directory even if no file in that directory 
has changed. A kind of workaround is to use '-O', but then the mtimes of 
directories are not preserved.

(Usage example where this is important: maintain a copy of filesystem A in 
filesystem B, and use filesystem B as the source for incremental backups 
(e.g., with star). rsync is run before an incremental backup is made. Because 
of the above described ctime problem, every incremental backup will contain 
*all* directories, even if filesystem A was not changed since the last sync 
and backup.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20080304/29de1383/attachment.bin


More information about the rsync mailing list