Re: Backup utility



You could create the following batch file:
@echo off
set Source=%UserProfile%\My Documents\
set Target=U:\
echo.
echo Backing up "My Documents". Please wait . . .
xcopy /s /d /y /c "%Source%" "%Target%"
set e=%ErrorLevel%
echo.
if %e% EQU 0 echo Backup successful.
if %e% GTR 0 echo One or more errors occured during the backup process.
echo.
echo Press the Space Bar to close this window.
pause > nul

Save the above lines in the file c:\Windows\MyBackup.bat, then
create a shortcut to this batch file.

You may need to adjust lines 2 and 3 to suit your requirements.
When you invoke the batch file, it will copy all new and modified
files from the Source area to the Target area. It will not touch old
files that exist already in the Target area.

It would be a trivial matter to pick up several source areas.

File recovery is very easy: You simply open the target area with
Explorer or with My Computer, then copy the backed up file
back to its original location. There is no need for any special
programs.

Note that this solution is only suitable for backing up data
files. When backing up a Windows installation then you
need an imaging program such as Acronis TrueImage. It lets
you create a recovery CD that you can use in case Windows
will not start.

Remember that an untested backup solution is useless, as is
a backup solution where the backup medium is kept on or
near the main computer.


"DTS" <DTS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B98FACCB-D710-4B6B-9390-CCB424EA7E99@xxxxxxxxxxxxxxxx
Please explain more about the batch file solution.

"Pegasus (MVP)" wrote:


"DTS" <DTS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1E69AC8A-C323-43F4-A2EE-7517E49EA239@xxxxxxxxxxxxxxxx
A couple of questions about using the backup utility:

1. Is there any way you can save (or name) what you selected on a
backup
so
you don't have to select the same files next time you decide to backup,
assuming all the files are the same?

2. If you backup your data to a USB mass storage device can you restore
it
if your computer will not start by using the command prompt?

Instead of using the backup facility built into Windows, use
a batch file or a third-party utility. Both give you better functionality
and both make it easy to retrieve files from backup. Post again
if you wish to find out more about a batch file solution.





.



Relevant Pages

  • Re: Scheduled Tasks Doesnt Wait for Backup to Finish
    ... running the DVD Differential job, but it is not shown running in Scheduled ... get a bad DVD once in a while, but Backup MyPC tells me. ... Run the batch file you see below. ... echo %date% %time%> c:\log.txt ...
    (microsoft.public.windowsxp.general)
  • Re: Scheduled Tasks Doesnt Wait for Backup to Finish
    ... Differential.txt is Backup MyPC's log. ... So there may be a way for Backup MyPC to wait until ... Run the batch file you see below. ... echo %date% %time%> c:\log.txt ...
    (microsoft.public.windowsxp.general)
  • Re: Backup problem
    ... echo Dagen är %dow% ... What do you get when you run this command in a Command Prompt: ... Please attach your batch file to your reply. ...
    (microsoft.public.win2000.general)
  • Re: "New" ZFS crash on FS (pool?) unmount/export
    ... the box stopped responding to pings at 02:07AM and it has a cron backup job using zfs send/recv at 02:00, so I'm guessing it's related, even though the backup probably should have finished before then... ... Essentially, it creates a GEOM provider of a file, containing a zpool, imports the pool and creates a clone to it, and then exports the pool. ... Every time it crashes it seems to be during or very soon after the export - only this time it didn't even take the snapshots. ... echo Creating ggate device ...
    (freebsd-current)
  • Re: Day of the week for disk backup
    ... > I am trying to setup a batch file to backup the server onto a ... I would like the batch to backup in a different directory ... Just change/delete the echo statements. ...
    (microsoft.public.windows.server.scripting)