Link to home
Start Free TrialLog in
Avatar of smart Z
smart Z

asked on

Help on a batch file

hi there,

I would like to have a batch file or VB script that will do full and incremental copy of My network drive Z to E (local drive). The Z drive have multiple folders and sub folders. I will create a Job task on the computer to run the full backup once every 2weeks and the incremental will run daily.

I would like copy to overwrite the last week copy to avoid running ot of space n the local drive.

Thanks, Habib
Avatar of Chickensaur
Chickensaur

I believe the Xcopy command will be of use for you.  It's an extremely powerful copy tool for MS-DOS.  I'm including a link to all the flags needed.

http://www.computerhope.com/xcopyhlp.htm
Avatar of Michael Ortega
How are you then going to audit backup success/failure of that data? I would recommend looking at 3rd party applications to do your backups.

A couple mainstream names would be Symantec BackupExec and Acronis. There are several flavors of backup applications so you'd want to choose the one that best matches your environment.

MO
Avatar of smart Z

ASKER

No I really do not care about the audit. I just want the job run.
Avatar of smart Z

ASKER

I agree X copy is the commad but the switches are confusing to me
 
What switch do you need help with?
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smart Z

ASKER

Excellent suggestions. Thank you.
Thank you Habib