robocopy.pdf<\/a> (120 KB)<\/p>","upvoteCount":3,"datePublished":"2013-03-25T16:16:44.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/11","author":{"@type":"Person","name":"martinpeverley","url":"https://community.spiceworks.com/u/martinpeverley"}},"suggestedAnswer":[{"@type":"Answer","text":"I have this robocopy script that I’m testing out before putting into the production environment…<\/p>\n
robocopy Z:\\Docs E:\\Backup /e /zb /copy:dats /move /minlad:30 /vb<\/p>\n
But the test files I’m trying to move all come back as being too new in the verbose output log despite having last modified dates from December 2012.<\/p>\n
Ideas?<\/p>\n
<\/p>","upvoteCount":3,"datePublished":"2013-03-22T14:56:47.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/1","author":{"@type":"Person","name":"scottclarke","url":"https://community.spiceworks.com/u/scottclarke"}},{"@type":"Answer","text":"
Does it work if you change your copy mode to /COPYALL ? or if you change dats to datsu?<\/p>","upvoteCount":0,"datePublished":"2013-03-22T15:05:51.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/2","author":{"@type":"Person","name":"Little-Green-Man","url":"https://community.spiceworks.com/u/Little-Green-Man"}},{"@type":"Answer","text":"
Nope, still says too new.<\/p>","upvoteCount":0,"datePublished":"2013-03-22T15:06:58.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/3","author":{"@type":"Person","name":"scottclarke","url":"https://community.spiceworks.com/u/scottclarke"}},{"@type":"Answer","text":"
/minage:0 ?<\/p>","upvoteCount":1,"datePublished":"2013-03-22T15:09:47.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/4","author":{"@type":"Person","name":"Little-Green-Man","url":"https://community.spiceworks.com/u/Little-Green-Man"}},{"@type":"Answer","text":"
Still the same I’m afraid…<\/p>","upvoteCount":0,"datePublished":"2013-03-22T15:11:17.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/5","author":{"@type":"Person","name":"scottclarke","url":"https://community.spiceworks.com/u/scottclarke"}},{"@type":"Answer","text":"
If those are just standalone files (not folders) then I would try removing the /e since there are no sub folders to copy.<\/p>","upvoteCount":0,"datePublished":"2013-03-22T15:20:45.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/6","author":{"@type":"Person","name":"Little-Green-Man","url":"https://community.spiceworks.com/u/Little-Green-Man"}},{"@type":"Answer","text":"
There are files that are in the root directory and then files that are inside sub directories. I want to move them all where they meet the minimum age constraint.<\/p>","upvoteCount":0,"datePublished":"2013-03-22T15:21:46.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/7","author":{"@type":"Person","name":"scottclarke","url":"https://community.spiceworks.com/u/scottclarke"}},{"@type":"Answer","text":"
Anyone have any ideas with this?<\/p>","upvoteCount":0,"datePublished":"2013-03-25T14:05:39.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/8","author":{"@type":"Person","name":"scottclarke","url":"https://community.spiceworks.com/u/scottclarke"}},{"@type":"Answer","text":"
You are trying to filter based on the Last Access Date, which is completey different from the last modified date. Often just browsing a folder in Windows Explorer will update acess timestamp on all files in that folder.<\/p>\n
I would try using /MINAGE instead of /MINLAD and see if that resolves the issue.<\/p>","upvoteCount":4,"datePublished":"2013-03-25T15:45:09.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/9","author":{"@type":"Person","name":"brentmhk","url":"https://community.spiceworks.com/u/brentmhk"}},{"@type":"Answer","text":"
That works a treat but its the last time that the file was modified that I need as I’m looking to deploy this script on a 1TB file server to move everything thats not been touched in 18 months onto our Archive machine.<\/p>","upvoteCount":0,"datePublished":"2013-03-25T15:52:17.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/10","author":{"@type":"Person","name":"scottclarke","url":"https://community.spiceworks.com/u/scottclarke"}},{"@type":"Answer","text":"\n\n
<\/div>\n
BrentMHK:<\/div>\n
\nYou are trying to filter based on the Last Access Date, which is completey different from the last modified date. Often just browsing a folder in Windows Explorer will update acess timestamp on all files in that folder.<\/p>\n
I would try using /MINAGE instead of /MINLAD and see if that resolves the issue.<\/p>\n<\/blockquote>\n<\/aside>\n
I had suggested the same thing.<\/p>","upvoteCount":1,"datePublished":"2013-03-25T18:31:51.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/12","author":{"@type":"Person","name":"Little-Green-Man","url":"https://community.spiceworks.com/u/Little-Green-Man"}},{"@type":"Answer","text":"\n\n
<\/div>\n
Limey:<\/div>\n
\nFrom the attached:<\/p>\n
/MAXAGE:n Excludes files with a Last Modified Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD. \n/MINAGE:n Excludes files with a Last Modified Date newer than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD. \n/MAXLAD:n Excludes files with a Last Access Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD. \n/MINLAD:n Excludes files with a Last Access Date newer than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.<\/p>\n
So, MINAGE should do it, as Brent says.<\/p>\n<\/blockquote>\n<\/aside>\n
Agreed ^^<\/p>","upvoteCount":1,"datePublished":"2013-03-25T18:33:06.000Z","url":"https://community.spiceworks.com/t/robocopy-minlad-n/202163/13","author":{"@type":"Person","name":"Little-Green-Man","url":"https://community.spiceworks.com/u/Little-Green-Man"}}]}}
I have this robocopy script that I’m testing out before putting into the production environment…
robocopy Z:\Docs E:\Backup /e /zb /copy:dats /move /minlad:30 /vb
But the test files I’m trying to move all come back as being too new in the verbose output log despite having last modified dates from December 2012.
Ideas?
3 Spice ups
Does it work if you change your copy mode to /COPYALL ? or if you change dats to datsu?
Nope, still says too new.
Still the same I’m afraid…
If those are just standalone files (not folders) then I would try removing the /e since there are no sub folders to copy.
There are files that are in the root directory and then files that are inside sub directories. I want to move them all where they meet the minimum age constraint.
Anyone have any ideas with this?
brentmhk
(BrentMHK)
March 25, 2013, 3:45pm
9
You are trying to filter based on the Last Access Date, which is completey different from the last modified date. Often just browsing a folder in Windows Explorer will update acess timestamp on all files in that folder.
I would try using /MINAGE instead of /MINLAD and see if that resolves the issue.
4 Spice ups
That works a treat but its the last time that the file was modified that I need as I’m looking to deploy this script on a 1TB file server to move everything thats not been touched in 18 months onto our Archive machine.
From the attached:
/MAXAGE:n Excludes files with a Last Modified Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
/MINAGE:n Excludes files with a Last Modified Date newer than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
/MAXLAD:n Excludes files with a Last Access Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
/MINLAD:n Excludes files with a Last Access Date newer than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
So, MINAGE should do it, as Brent says.
robocopy.pdf (120 KB)
3 Spice ups
BrentMHK:
You are trying to filter based on the Last Access Date, which is completey different from the last modified date. Often just browsing a folder in Windows Explorer will update acess timestamp on all files in that folder.
I would try using /MINAGE instead of /MINLAD and see if that resolves the issue.
I had suggested the same thing.
1 Spice up
Limey:
From the attached:
/MAXAGE:n Excludes files with a Last Modified Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
/MINAGE:n Excludes files with a Last Modified Date newer than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
/MAXLAD:n Excludes files with a Last Access Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
/MINLAD:n Excludes files with a Last Access Date newer than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
So, MINAGE should do it, as Brent says.
Agreed ^^
1 Spice up