Tool to move files between dates

Discussion in 'Windows Server' started by Cyborg, Jun 3, 2008.

  1. Cyborg

    Cyborg Guest

    Hi,

    I need to archive files from one server to another that are between certain
    dates and if possible keep permissions, is there such a tool?
     
    Cyborg, Jun 3, 2008
    #1
    1. Advertisements

  2. Yes, robocopy.exe.
     
    Pegasus \(MVP\), Jun 3, 2008
    #2
    1. Advertisements

  3. Cyborg

    Cyborg Guest

    So I can move anything modified between certain dates! I see there is a gui
    version too.

    Thanks
     
    Cyborg, Jun 3, 2008
    #3
  4. I'm not familiar with the GUI version but you can certainly
    define dates in the command line version.
     
    Pegasus \(MVP\), Jun 3, 2008
    #4
  5. Cyborg

    Cyborg Guest

    THe command line is better, I can't see a switch to move only modified dates
    say 1999 to 2005, don't suppose you have an example?

    robocopy.exe F:\Archive\ "R:\Users" /E /COPYALL /MOVE
     
    Cyborg, Jun 3, 2008
    #5
  6. You need to wade through the detailed help file - the "maxage"
    and "minage" would be prime candidates!
    robocopy d:\temp d:\Tue *.txt /maxage:180 /minage:60
    There is a "move" switch too.
     
    Pegasus \(MVP\), Jun 3, 2008
    #6
  7. Cyborg

    Cyborg Guest

    Couple of questions what does the *.txt do you added?

    /maxage:180 /minage:60= does this mean you will move files that have not
    been modified and are between 6 months and 2 months old?
     
    Cyborg, Jun 3, 2008
    #7
  8. Cyborg

    Cyborg Guest

    Seems /minage: is the one I need but i can't use more the 1900 days is this
    normal?
     
    Cyborg, Jun 3, 2008
    #8
  9. I quote from the helpfile:
    /MINLAD:n :: MINimum Last Access Date - exclude files used since
    n.
    (If n < 1900 then n = n days, else n = YYYYMMDD
    date).
    If this is insufficient then you need to translate "n days" into
    an actual date of the form YYYYMMDD.

    About your other questions:
    It means what it says: It copies .txt files only.
    I actually ran a test to confirm this behaviour before replying
    to your post. I urge you to do the same - it will increase your
    confidence level that the command really works.
     
    Pegasus \(MVP\), Jun 3, 2008
    #9
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.