Maintaining copies of files

Posted on 2009-02-11
Medium Priority
Last Modified: 2013-11-10
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.

Question by:ChrisHelvey
LVL 28

Accepted Solution

jhyiesla earned 1000 total points
ID: 23614140
If there's no script available, take a look at ViceVersa:


We use it to copy over large amounts of data between two NAS boxes and one nice feature is that if a file is deleted from the source box, on the next copy it also gets deleted from the destination box.

Author Closing Comment

ID: 31545674
Perfect. Thanks a lot.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
This article is about my experience upgrading my consulting machine to Windows 10 Version 1709 (The Fall 2017 Creator Update)
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Screencast - Getting to Know the Pipeline

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question