How to backup files using original extension

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to backup files from one drive on a W2K Server to another
drive on the same server using a batch file that will execute every day? The
files are not very large - about 300MB total. The normal backup will do it's
job but the files are in the *.bkf format and do not seem to want to extract
on another W2K Professional pc. Copying the files "as is" would be very
helpful to make them easier to use / transport / copy to another pc. The
Server stays on 24/7 unless there is a power outage.
 
In
BorealBob said:
Is there a way to backup files from one drive on a W2K Server to
another drive on the same server using a batch file that will execute
every day? The files are not very large - about 300MB total. The
normal backup will do it's job but the files are in the *.bkf format
and do not seem to want to extract on another W2K Professional pc.
Copying the files "as is" would be very helpful to make them easier
to use / transport / copy to another pc. The Server stays on 24/7
unless there is a power outage.

we use something like ...

@echo off
REM *************************************************************
REM
REM Backup to Server script
REM
REM
REM *************************************************************
REM
REM Set Source and Target Dirs
REM ------------------------------
SET _Target_Dir=E:\Backup
REM ------------------------------
echo.
echo Start file backup
echo.
Time /T
Date /T
echo.
XCOPY "%USERPROFILE%\My Documents\*.*" "%_Target_Dir%\Profiles\My
Documents\*.*" /D /E /Y /H /R /F /I /C
XCOPY "%USERPROFILE%\Favorites\*.*" "%_Target_Dir%\Profiles\Favorites\*.*"
/D /E /Y /H /R /F /I /C
XCOPY "%USERPROFILE%\Start Menu\*.*" "%_Target_Dir%\Profiles\Start Menu\*.*"
/D /E /Y /H /R /F /I /C
XCOPY "%USERPROFILE%\Desktop\*.*" "%_Target_Dir%\Profiles\Desktop\*.*" /D /E
/Y /H /R /F /I /C

REM

..... this as a batch file that runs a few times a day via task scheduler. It
does'nt delete files so all we do is occasionally delete the back up and let
it run again, it is incremental so only backsup changed or new files, so
once run it's quite quicker subsequently.

Obviously you'd need to customise it to back up the locations you want.
 
I do something similar for my daily data file backups. I use a DOS
batch file and XCOPY to do the copying. XCOPY seems to copy "as is".
XCOPY can also be made to copy only "new" versions of files using
appropriate qualifiers. My total backup ranges from several MB to
several GB depending on daily usage.

Sorry, but I don't know how to schedule for a specific time of day.
 
Hello Steve,
I am not very familiar with programming and was hoping you might be able to
explain each of the steps listed in your post. For example, what is the
syntax for DATE and TIME? I need to do a backup each Mon - Fri at about 10
PM.
Also, how do I get the bat started, or does it just keep going from day to
day? I do not understand %USERPROFILE%, what does it refer to/mean?
I hope I am not trying your patience but I need to understand the process.
Thank you.
Bob
 
In
BorealBob said:
Hello Steve,
I am not very familiar with programming and was hoping you might be
able to explain each of the steps listed in your post. For example,
what is the syntax for DATE and TIME? I need to do a backup each Mon
- Fri at about 10 PM.
Also, how do I get the bat started, or does it just keep going from
day to day? I do not understand %USERPROFILE%, what does it refer
to/mean?
I hope I am not trying your patience but I need to understand the
process. Thank you.
Bob

Hi Bob

If you copy the script I posted earlier and paste it into a text file, then
rename the text file to mybackup.bat

You can then manually run the mybackup.bat whenever you wish or you can
schedule it via task scheduler in control panel.

For syntax if you run a command in a CMD prompt with a /? at the end it will
give advice on the options available.

for example

"
C:\>date /?
Displays or sets the date.

DATE [/T | date]

Type DATE without parameters to display the current date setting and
a prompt for a new one. Press ENTER to keep the same date.

If Command Extensions are enabled the DATE command supports
the /T switch which tells the command to just output the
current date, without prompting for a new date.

C:\>
"
 
Back
Top