Maintaining copies of files

Posted on 2009-02-11
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

    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

    Perfect. Thanks a lot.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
    In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now