Link to home
Start Free TrialLog in
Avatar of ChrisHelvey
ChrisHelvey

asked on

Maintaining copies of files

Hi Experts,
We have a script (based on xcopy in Win2003 server) that copies all new or changed files on one drive to a "backup" drive. Can anyone suggest a way to make a script that can be run from the command line to see if a file was deleted from the original drive and then delete it from the "backup" drive?
The concept is simple enough but I can't quite get how to do it.
Perhaps an if exist and then write the filenames into a list, then delete the list?

I have NO understanding of VB, so that's no help to me, but I can follow a shell script.

Thanks.  
ASKER CERTIFIED SOLUTION
Avatar of jhyiesla
jhyiesla
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 ChrisHelvey
ChrisHelvey

ASKER

Perfect. Thanks a lot.