Microsoft, Robocopy, help with odd backup scenario

Posted on 2007-08-08
Last Modified: 2013-12-23
I haven't used Robocopy in the past but a friend recommended it for a task I need.

We have an Archive folder which an internal application outputs files too. It builds the folder structure dynamically and inserts files into the folders based on filename.
For instanace under /Archive/ there may be a folder called /Archive/54CE8/ the next folder may be callled something entirely different  /Archive/56BE2/ for example.

I can't do any sort of backup based on folder name as it's randomly generated. So my thoughts were too backup based on *folder* timestamp, this is because I don't want half the files in the directory copied/backed up - I need all files within a directory..

Does anyone know how to get robocopy to backup all files within a directory based on timestamp?

I hope this makes sense! Any hints appreciated.
Question by:scott_tnz
    1 Comment
    LVL 23

    Accepted Solution

    Robocopy source destination with the blow options
            /MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
            /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
            /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
            /MINLAD:n :: MINimum Last Access Date - exclude files used since n.
                         (If n < 1900 then n = n days, else n = YYYYMMDD date).

    Other options would be use archive bit and reset the archive bit after its been copies so this way you need to only copy the new files.

    /A :: copy only files with the Archive attribute set.
    /M :: copy only files with the Archive attribute and reset it.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
    The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 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

    20 Experts available now in Live!

    Get 1:1 Help Now