Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Backing up files

Status
Not open for further replies.

tooton

MIS
Jan 15, 2002
1
US
I am needing to backup some files weekly. Like .pst and .doc files from laptops to a network dive. I am looking into using a batch file to do this. I am looking for some help on this. If anyone can help me that would be great.
 
Your batchfile might look like this:

@echo off
cdcd backup
if exist myfile.10 then del *.10
if exist myfile.9 then ren *.9 *.10
if exist myfile.8 then ren *.8 *.9
...
...
if exist myfile.pst then ren *.pst *.1
cdcd mypath
xcopy32 /k/r/y/c/h/e/f *.pst c:\backup

This will make a stack of ten copies of your data, allowing time to recover from accidental corruption. You can also copy across a network, provided that you call the batchfile in protected mode only.

Example:

XCopy32 /k/r/y/c/h/e/f *.pst \\computer\shared\backup
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top