zito2000
asked on
Xcopy / Robocopy Question
All,
I have a very large directory that I need to copy the contents of, but very simply, I need to copy the files that are BEFORE 12/31/14.
Is there a way to do that using any of the popular methods, XCopy, Robocopy, etc.?
It would also be create if this utility DELETED the source files after the copy, but that's 100% necessary.
Hopefully that makes sense, thanks in advance!
I have a very large directory that I need to copy the contents of, but very simply, I need to copy the files that are BEFORE 12/31/14.
Is there a way to do that using any of the popular methods, XCopy, Robocopy, etc.?
It would also be create if this utility DELETED the source files after the copy, but that's 100% necessary.
Hopefully that makes sense, thanks in advance!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Your original question says
...copy the files that are BEFORE 12/31/14.
MAXAGE:n : MAXimum file AGE - exclude files older than n days/date.
MINAGE:n : MINimum file AGE - exclude files newer than n days/date.
To instill confidence, do on a test folder first. Especially since you're using the MOVE switch.
As an aside... Do you need other Security data, besides the default ?
http://ss64.com/nt/robocopy.html
...copy the files that are BEFORE 12/31/14.
MAXAGE:n : MAXimum file AGE - exclude files older than n days/date.
MINAGE:n : MINimum file AGE - exclude files newer than n days/date.
To instill confidence, do on a test folder first. Especially since you're using the MOVE switch.
As an aside... Do you need other Security data, besides the default ?
http://ss64.com/nt/robocopy.html
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I suggest to use also /MT as multi-threaded copy option (the value is 8 by default) - helps a lot in time, if there are an army of small files involved :).
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You could explore ForFiles
ASKER
I'm not doubting you at all, I just want to triple check....
Does the /maxage:20141231 specify "move only things that are December 31, 2014 and LATER"...? So it would take the December 31, 2014 to present?
Just want to be sure.
Thanks again!