fixing user, group, and mtime with rsync?
Sven.Hartrumpf at FernUni-Hagen.de
Tue Sep 16 08:02:11 GMT 2008
Mon, 15 Sep 2008 15:21:37 -0400, matt wrote:
> On Mon, 2008-09-15 at 14:05 +0200, Sven Hartrumpf wrote:
> > I prepared a mirror (that is intended to be updated by rsync)
> > by doing the initial copy using cpio (for efficiency on 15 million files).
> > Unfortunately, user, group, and mtime of some directories and files
> > was copied incorrectly.
> > Can I use rsync (GIT) to fix this?
> Yes, use rsync with the -a option. Also pass --size-only to avoid
> resending the data of regular files due to the difference in mtime.
that worked almost perfectly and was very quick for the 15 million files!
The mtime of soft links was not corrected. Is this expected?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20080916/db7fb915/attachment.bin
More information about the rsync