On Sunday 16 November 2003 15:53, Jason Stubbs wrote: > On Sunday 16 November 2003 15:42, Paul Fraser wrote: > > Does cp -a also preserve permissions? If not, you'll want to use -p as > > well. I can't try it since I'm not at a Linux box at the moment. > > In my previous mail: > � � � �-a, --archive > � � � � � � � Preserve as much as possible of the structure and attributes > �of the �original �files �in the copy (but do not preserve directory > structure). �Equivalent to -dpR. > > -a is just shorthand for -dpR > = copy symlinks as is, including permissions, recursively
Actually, just thinking - it doesn't preserve modification times which may be a problem with /var. Why not just use rsync? 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. Jason -- [EMAIL PROTECTED] mailing list
