> On Tue, 2006-12-05 at 10:18 +0800, Hadders wrote: > > > cd /oldpart; find . -xdev | cpio -padm /newpart > > The cpio command doesn't preserve the timestamp on directories. The tar version does: cd /oldpart tar cvf - . | ( cd /newpart ; tar xf -)
> On Tue, 2006-12-05 at 10:18 +0800, Hadders wrote: > > > cd /oldpart; find . -xdev | cpio -padm /newpart > > The cpio command doesn't preserve the timestamp on directories. The tar version does: cd /oldpart tar cvf - . | ( cd /newpart ; tar xf -)