Simple backup script

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
 
T

TAJ Simmons

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
 
M

Michael Koerner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top