Link to home
Start Free TrialLog in
Avatar of bhunger
bhungerFlag for United States of America

asked on

Backing (Using Copy or Xcopy) Up to Datestamped Directory

I'm using Windows 2000 Server.  I want to make a nightly backup, prefereably with "copy" or "xcopy" from c:\sourcedir to h:\backup<date>.  I want to do this each night and want the target directory named with a datestamp (e.g. "h:\backup20070730").  I know how to use scheduler to set it up once the bat file is written.  I need to write the bat file.
ASKER CERTIFIED SOLUTION
Avatar of amit_g
amit_g
Flag of United States of America 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
Avatar of bhunger

ASKER

Works great except that only the directories and subdirectories are copied onto the H: dirve.  The files in the directories are not copied.
Thanks
The xcopy flags that I have used may be causing it. I use these for some of my backups. Take out /M. Check the meaning of these flags by checking those by doing xcopy /?