Simple backup script

  • Thread starter Thread starter Glen Millar
  • Start date Start date
G

Glen Millar

Hi,

Anyone have a simple script I can modify to ensure data gets backed up off
my hard drive to a server? I'm happy with a batch file I can run at 4:45pm
each day. But I'm not sure of the syntax to stop getting pestered about
overwriting files.

Would go something like
Copy d:bofu2\*.* to g:\blah_blah\Bofu2\

Do I need to delete the files on the server first?

--
Regards,

Glen Millar
Microsoft PPT MVP
http://www.powerpointworkbench.com/
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego CA
http://www.powerpointlive.com
 
Glen,

I prefer to use XCOPY (still part of ms-dos on a windows pc)

xcopy d:\bofu2\*.* g:\blingbling\bofu2\ /S/D/V/F/Y

The / switches on the end do the following...

/S copies subdirectories of bofu2 (if there is any)
/D only copies files if the date is newer than the existing copy on g:\bofu2\
this saves ages and ages, the next time you backup...as it will skip files already
backed up, but havent changed.
/V Verifies the backup is good
/F Shows what files it's copying
/Y Stops asking if you want to overwrite existing files. Stops you getting pestered

To see more switches type
Xcopy /?

Cheers
TAJ Simmons
microsoft powerpoint mvp

awesome - powerpoint backgrounds,
free powerpoint templates, tutorials, hints and tips etc
http://www.powerpointbackgrounds.com
 
This one is even better http://www.xxcopy.com/




Glen,

I prefer to use XCOPY (still part of ms-dos on a windows pc)

xcopy d:\bofu2\*.* g:\blingbling\bofu2\ /S/D/V/F/Y

The / switches on the end do the following...

/S copies subdirectories of bofu2 (if there is any)
/D only copies files if the date is newer than the existing copy on g:\bofu2\
this saves ages and ages, the next time you backup...as it will skip files
already
backed up, but havent changed.
/V Verifies the backup is good
/F Shows what files it's copying
/Y Stops asking if you want to overwrite existing files. Stops you getting
pestered

To see more switches type
Xcopy /?

Cheers
TAJ Simmons
microsoft powerpoint mvp

awesome - powerpoint backgrounds,
free powerpoint templates, tutorials, hints and tips etc
http://www.powerpointbackgrounds.com
 
/C is also useful - tells it to forge onward if an error occurs.

Say a file's in use - normally XCOPY will just quit. Unless you check the screen later,
you might not know an error occurred and that all files past the second one where the
error occurred are not backed up. OOPsie.



Glen,

I prefer to use XCOPY (still part of ms-dos on a windows pc)

xcopy d:\bofu2\*.* g:\blingbling\bofu2\ /S/D/V/F/Y

The / switches on the end do the following...

/S copies subdirectories of bofu2 (if there is any)
/D only copies files if the date is newer than the existing copy on g:\bofu2\
this saves ages and ages, the next time you backup...as it will skip files already
backed up, but havent changed.
/V Verifies the backup is good
/F Shows what files it's copying
/Y Stops asking if you want to overwrite existing files. Stops you getting pestered

To see more switches type
Xcopy /?

Cheers
TAJ Simmons
microsoft powerpoint mvp

awesome - powerpoint backgrounds,
free powerpoint templates, tutorials, hints and tips etc
http://www.powerpointbackgrounds.com

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
XCOPY's good, but have a look at Directory Toolkit too.

http://www.funduc.com/directory_toolkit.htm

For basic stuff, XCOPY will do lots, but DT's a wonder at synchronizing
directories and such ... making sure you've got the latest/greatest on both
your laptop and desktop PCs for instance.


--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top