On Tuesday 18 November 2003 05:50, Danilo Piazzalunga wrote: > Alle 08:15, domenica 16 novembre 2003, Jason Stubbs ha scritto: > > Actually, just thinking - it doesn't preserve modification times which > > may be a problem with /var. Why not just use rsync? > > Actually, cp -a preserves mtimes (except for symlinks, you know).
You're right. I did another test to be sure and found times preserved. I did a test last time, so I must of misunderstood my own results! > > rsync -a /mnt/gentoo/var/ /mnt/gentoo/newvar > > > > Make sure to include the trailing slash on the source dir. I did a little > > test as well and found that times are preserved on all files except > > symlinks - but that shouldn't matter. > > Use `rsync -aH', so that hardlinks are preserved. Well, there's something that cp doesn't do... Most *nix gurus will tell you to use some magically tar and cpio pipe to do the job. I would have put that but I couldn't find an appropriate example. ;-) Jason -- [EMAIL PROTECTED] mailing list
