fixing user, group, and mtime with rsync?
Matt McCutchen
matt at mattmccutchen.net
Mon Sep 15 19:21:37 GMT 2008
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.
Matt
More information about the rsync
mailing list