[<<]Message[>>]    [<<]Author[>>]    [<<]Subject[>>]    [<<]Thread[>>]

Number : 5454 Date : 2003-09-03 Author : Garry Deane Subject : Re: /SP option Size(KB) : 2
--- In xxcopy@yahoogroups.com, "wilnerjoe" wrote: > I love the product. > I have a question as to whether I almost caused a disaster. > > I successfully created a 3 CD/R set on computer one using the > /SP switch. > > I wanted to restore all files/directories to C:\ drive of > computer two. [Background: I am used to old (hoary) multi-disk > backup utilities that required this switch on both backup and > restore operations]. > > My first impulse was to use /SP switch on computer two to "warn" > xxcopy that it was a multi-CD restore. At the last second, I > realized that if I hit "any key" it would have wiped my C:\ > drive thinking I was requesting a multi-disk backup to a > floppy/CD drive named "C:" > > Question: Had I pressed "any key" would xxcopy have zapped my > C drive or would an additional test have been made as to whether > the drive was a removeable media drive. > > Thanks, in advance, for any light you can shed on this. > > BTW, /SP switch seems to work fine and, as I now understand, > just creates N disks while being aware of remaining capacity. /SP itself would not have been destructive but if you were using /clone (which from the prompt it seems you were), then that would have been destructive. Your view of /SP is correct but it is intended to handle one source with potentially multiple destination media. It is not intended for multiple source media. When you reverse the operation and use /clone, the first copy will delete all the files on the destination (the new C:) which don't exist on the source (the CDR). Since the source only contains a sub-set of the original files, only that sub-set of files would be left on the destination after the /clone. To do a non-destructive copy, you need to use /BACKUP for each of the source CDR's. This may leave additional files on the source. To get an exact copy of the files on the source CDRs without any extra files on the destination would be a bit tricky. Here's one way you might do it. I haven't tested this fully so proceed with caution. 1. Mark all the files on the new C: by clearing the archive bit. xxcopy c:\ /s/az 2. Copy any different files from the CDR (assumed H:\) to C:\ xxcopy h:\ c:\ /bu 3. Set the archive bit on each of the files on C: that are the same on the CDR. xxcopy c:\ h:\ /aa/bs/s/h 4. Repeat 2 & 3 for each CDR until all have been done. 5. Delete any extra files which don't have the archive bit set. xxcopy c:\ /rsy/axa/s/h/r/pd0 Garry
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.