Tool to move files between dates

  • Thread starter Thread starter Cyborg
  • Start date Start date
C

Cyborg

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" <apollo13@btinternet.com> wrote in message
news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
> 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?


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

Thanks

"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:uQ7uzJWxIHA.1240@TK2MSFTNGP02.phx.gbl...
>
> "Cyborg" <apollo13@btinternet.com> wrote in message
> news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
>> 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?

>
> Yes, robocopy.exe.
>
 
I'm not familiar with the GUI version but you can certainly
define dates in the command line version.


"Cyborg" <apollo13@btinternet.com> wrote in message
news:FE9BD1B8-1047-47D7-B791-A82143F5F833@microsoft.com...
> So I can move anything modified between certain dates! I see there is a
> gui version too.
>
> Thanks
>
> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> news:uQ7uzJWxIHA.1240@TK2MSFTNGP02.phx.gbl...
>>
>> "Cyborg" <apollo13@btinternet.com> wrote in message
>> news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
>>> 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?

>>
>> Yes, robocopy.exe.
>>

>
 
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


"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:u%23tJJUXxIHA.5472@TK2MSFTNGP06.phx.gbl...
> I'm not familiar with the GUI version but you can certainly
> define dates in the command line version.
>
>
> "Cyborg" <apollo13@btinternet.com> wrote in message
> news:FE9BD1B8-1047-47D7-B791-A82143F5F833@microsoft.com...
>> So I can move anything modified between certain dates! I see there is a
>> gui version too.
>>
>> Thanks
>>
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:uQ7uzJWxIHA.1240@TK2MSFTNGP02.phx.gbl...
>>>
>>> "Cyborg" <apollo13@btinternet.com> wrote in message
>>> news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
>>>> 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?
>>>
>>> Yes, robocopy.exe.
>>>

>>

>
>
 
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.


"Cyborg" <apollo13@btinternet.com> wrote in message
news:DEE70114-69D4-4B35-9725-A2363ED4807B@microsoft.com...
> 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
>
>
> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
> news:u%23tJJUXxIHA.5472@TK2MSFTNGP06.phx.gbl...
>> I'm not familiar with the GUI version but you can certainly
>> define dates in the command line version.
>>
>>
>> "Cyborg" <apollo13@btinternet.com> wrote in message
>> news:FE9BD1B8-1047-47D7-B791-A82143F5F833@microsoft.com...
>>> So I can move anything modified between certain dates! I see there is a
>>> gui version too.
>>>
>>> Thanks
>>>
>>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>>> news:uQ7uzJWxIHA.1240@TK2MSFTNGP02.phx.gbl...
>>>>
>>>> "Cyborg" <apollo13@btinternet.com> wrote in message
>>>> news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
>>>>> 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?
>>>>
>>>> Yes, robocopy.exe.
>>>>
>>>

>>
>>

>
 
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?

"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:O1NEJ4YxIHA.4376@TK2MSFTNGP06.phx.gbl...
> 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.
>
>
> "Cyborg" <apollo13@btinternet.com> wrote in message
> news:DEE70114-69D4-4B35-9725-A2363ED4807B@microsoft.com...
>> 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
>>
>>
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:u%23tJJUXxIHA.5472@TK2MSFTNGP06.phx.gbl...
>>> I'm not familiar with the GUI version but you can certainly
>>> define dates in the command line version.
>>>
>>>
>>> "Cyborg" <apollo13@btinternet.com> wrote in message
>>> news:FE9BD1B8-1047-47D7-B791-A82143F5F833@microsoft.com...
>>>> So I can move anything modified between certain dates! I see there is
>>>> a gui version too.
>>>>
>>>> Thanks
>>>>
>>>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>>>> news:uQ7uzJWxIHA.1240@TK2MSFTNGP02.phx.gbl...
>>>>>
>>>>> "Cyborg" <apollo13@btinternet.com> wrote in message
>>>>> news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
>>>>>> 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?
>>>>>
>>>>> Yes, robocopy.exe.
>>>>>
>>>>
>>>
>>>

>>

>
>
 
Seems /minage: is the one I need but i can't use more the 1900 days is this
normal?


"Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
news:O1NEJ4YxIHA.4376@TK2MSFTNGP06.phx.gbl...
> 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.
>
>
> "Cyborg" <apollo13@btinternet.com> wrote in message
> news:DEE70114-69D4-4B35-9725-A2363ED4807B@microsoft.com...
>> 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
>>
>>
>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>> news:u%23tJJUXxIHA.5472@TK2MSFTNGP06.phx.gbl...
>>> I'm not familiar with the GUI version but you can certainly
>>> define dates in the command line version.
>>>
>>>
>>> "Cyborg" <apollo13@btinternet.com> wrote in message
>>> news:FE9BD1B8-1047-47D7-B791-A82143F5F833@microsoft.com...
>>>> So I can move anything modified between certain dates! I see there is
>>>> a gui version too.
>>>>
>>>> Thanks
>>>>
>>>> "Pegasus (MVP)" <I.can@fly.com.oz> wrote in message
>>>> news:uQ7uzJWxIHA.1240@TK2MSFTNGP02.phx.gbl...
>>>>>
>>>>> "Cyborg" <apollo13@btinternet.com> wrote in message
>>>>> news:D4CE8365-7903-4BAD-9CA3-75CFFF1878CE@microsoft.com...
>>>>>> 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?
>>>>>
>>>>> Yes, robocopy.exe.
>>>>>
>>>>
>>>
>>>

>>

>
>
 
"Cyborg" <apollo13@btinternet.com> wrote in message
news:%23s1y9KZxIHA.1440@TK2MSFTNGP05.phx.gbl...
> Seems /minage: is the one I need but i can't use more the 1900 days is
> this normal?


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:
> What does the *.txt do you added?

It means what it says: It copies .txt files only.

> /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?

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.
 
Back
Top