»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 08-04-2003, 12:14 PM   #1 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Minnesota
Posts: 129
psppsp is on a distinguished road
Copying Files in System Recovery Concil (Win2k server)

I need to copy a large number of files and folders using the command line in Windows Recovery Council (The command line). Can someone give me the command line to copy all folders, subfolders, and files to a differant location? As an example:

I want to copy ALL files and folders in "C:\" to "D:\backup\"

I know I could type, "copy c:\*.* d:\backup\*.*" but that only does files in the "C:\" directory, not all subdirectories.

Thanks.

Pat

psppsp is offline   Reply With Quote
Old 08-04-2003, 12:28 PM   #2 (permalink)
Registered User
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 3,253
jkrohn is on a distinguished road
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Try taking a look at xcopy

xcopy /S /E will copy all subdirectories (including empty ones).

For a full backup of system files, read-only files, etc
xcopy C:\*.* /h/i/c/k/e/r/y D:\backup\

Jkrohn
__________________
Jkrohn
jkrohn is offline   Reply With Quote
Old 10-20-2003, 12:52 PM   #3 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Minnesota
Posts: 129
psppsp is on a distinguished road
I don't have Xcopy as an option, and when I try putting a floppy in with Xcopy on it, it says it's not an allowed command. The commands it allows are:

ATTRIB
BATCH
CD
CHDIR
CHKDSK
CLS
COPY
DEL
DELETE
DIR
DISABLE
DISKPART
ENABLE
EXIT
EXPAND
FIXBOOT
FIXMBR
FORMAT
HELP
LISTSVC
LOGON
MAP
MD
MKDIR
MORE
RD
REN
RENAME
RMDIR
SYSTEMROOT
TYPE

None of these jump out at me as things I want to use. I need to copy all of the files, directories, and subdirectories to a differant drive so that I can format c:

Someone please help on this.
psppsp is offline   Reply With Quote
Old 10-20-2003, 01:02 PM   #4 (permalink)
Registered User
 
meese's Avatar
 
Join Date: Jun 2003
Location: NJ
Posts: 1,096
meese is on a distinguished road
XCOPY is the command for this. Maybe its not available (for some reason) in the recovery console. I use xcopy all the time on my W2K server, but never tried in the recovery console.

Another option is to remove the drive and make it a slave in another W2K machine.

Is this server acting as a domain controller? What do you plan to do with theses files after you copy them?
meese is offline   Reply With Quote
Old 10-20-2003, 01:25 PM   #5 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Minnesota
Posts: 129
psppsp is on a distinguished road
We've considered removing the drive and putting it in a differant machine, but we don't have any other machines with scsi ports available.

The server is not a domain controller. We have Citrix running on this machine, and we just want to keep a backup of the files that are used. We're going to do a full format and reinstall of WIndows and Citrix, but want to keep all the files as they were before the format for the meantime.

Is there a better way to get to the command line other than using recovery council?

Where is xcopy kept in a windows 2000 directory structure?
psppsp is offline   Reply With Quote
Old 10-20-2003, 01:56 PM   #6 (permalink)
Registered User
 
meese's Avatar
 
Join Date: Jun 2003
Location: NJ
Posts: 1,096
meese is on a distinguished road
You can get to the command prompt by clicking Start>Programs>Accessories>Command Prompt. I can use xcopy here.

There is also a backup tool built into windows. Start>Programs>Accessories>System Tools>Backup. Maybe this is an option?

Last edited by meese; 10-20-2003 at 01:58 PM.
meese is offline   Reply With Quote
Old 10-20-2003, 03:47 PM   #7 (permalink)
Registered User
 
Join Date: Dec 2001
Location: Minnesota
Posts: 129
psppsp is on a distinguished road
Will I be able to use the /h/i/c/k/e/r/y commands to copy over all of the system files? When I try using the copy command in windows (not the command line) it won't copy the files that are currently in use. Will I be able to do that at the command line through the OS?

I don't want to use the Backup feature for this.
psppsp is offline   Reply With Quote
Old 10-20-2003, 03:58 PM   #8 (permalink)
Registered User
 
meese's Avatar
 
Join Date: Jun 2003
Location: NJ
Posts: 1,096
meese is on a distinguished road
You can't copy files that are in use. Thats why I suggested moving the drive to another machine. But then I didn't realize it was SCSI. One other option is to boot into safe mode, then try xcopy. At least this way the minimun is running at this point.

Another option is to add a unformatted drive to the system and install W2K pro on it. This drive may be e: f: or even m:. It doesn't matter. Just make sure you install W2K on the unformatted drive. So now you have a dual boot system. Boot to W2K pro (and you may as well use this disk for you backup) copy your server c: partition to it.
meese is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:07 AM.