-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.
do not preserve dir struct?? [EMAIL PROTECTED] wrote: >On Thu, Oct 18, 2001 at 02:48:34PM +0800, JohnHomer wrote: >> i can do >> >> xcopy c:\*.* d:\*.* /c /h /e /k >> >> on fat32, for disk dupes works great for me, >> i dont have to worry bout geometry/sizes. >> >> if we can get the "cp" equivalents for those >> switches, then, all will be fine, I THINK. > >Oh, but you're forgetting something. The cp -a command will do more or >less the same thing but that's not the same as an exact clone. Say you >have a Linux disk /dev/hda, a Windows partition to clone /dev/hdb1, >mounted on /mnt/src, and an empty Windows partition /dev/hdc1, mounted >on /mnt/dest. Doing a cp -a /mnt/src /mnt/dest is NOT THE SAME as >cloning the two partitions. Most likely, once you load /dev/hdc1 on >another machine, it probably won't boot. Why? System files. Same >problem happens when trying to clone Linux disks, 'cept it's easier to >fix, you only need to rerun lilo on the errant partition. I have no >idea how to fix a fscked Windows bootable disk of that sort. > >Another problem occurs if you have file systems that understand symbolic >links here. The symbolic links will come out wrong--adding the -s >switch to the cp command will not help if there are any non-relative >symbolic links. Omitting -s will create copies of what would have been >symbolic links, which is probably not what you intended. > >-- >Rafael R. Sevilla <[EMAIL PROTECTED]> +63(2) 8177746 ext. 8311 >Programmer, Inter.Net Philippines +63(917) 4458925 >http://dido.engr.internet.org.ph/ OpenPGP Key ID: 0x5CDA17D8 >_ >Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph >To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] > >To subscribe to the Linux Newbies' List: send "subscribe" in the body to >[EMAIL PROTECTED] > > __________________________________ www.edsamail.com _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
