I’ve seen a few posts related to this topic, but want to clarify a couple of things about Robocopy first.<\/p>\n
Advertisement
I have a public internal share where I’d like to move files from to an archive folder while keeping the same folder structure in the destination.<\/p>\n
Advertisement
My question is regarding the MINAGE /MAXAGE and MINLAD / MAXLAD. Is what is a way to remember the difference between them.<\/p>\n
my script is robocopy d:\\users\\ e:\\ /e /mov maxlad:1095 because from what I read it looks like maxlad will move files MODIFIED where as maxage moves files by CREATION date.<\/p>\n
I would like to move files that move files that have a MODIFIED date 3 years and older. We have a lot of reference files that some people refer back to but don’t change and from what I read, there is an ACCESS flag that is reset when the file is just open. I think that flag is read by minage/maxage but not sure.<\/p>","upvoteCount":6,"answerCount":10,"datePublished":"2017-08-29T23:54:39.000Z","author":{"@type":"Person","name":"tomgarcia2","url":"https://community.spiceworks.com/u/tomgarcia2"},"acceptedAnswer":{"@type":"Answer","text":"
I hope this helps (file server created in 2010…today 2017 Aug 30)…I only want to keep 10 days of files on my server.<\/p>\n
move all files edited from 2010 to 2017 Aug 20 to another location<\/li>\n
if the file was created in 2016 Dec 25, but someone made changes and saved it on 2017 Aug 25, the file will not be moved.<\/li>\n<\/ul>\n<\/li>\n<\/ol>","upvoteCount":1,"datePublished":"2017-08-30T09:11:40.000Z","url":"https://community.spiceworks.com/t/how-do-i-use-robocopy-to-move-files-older-than-3-years/602860/4","author":{"@type":"Person","name":"adrian_ych","url":"https://community.spiceworks.com/u/adrian_ych"}},"suggestedAnswer":[{"@type":"Answer","text":"
I’ve seen a few posts related to this topic, but want to clarify a couple of things about Robocopy first.<\/p>\n
I have a public internal share where I’d like to move files from to an archive folder while keeping the same folder structure in the destination.<\/p>\n
My question is regarding the MINAGE /MAXAGE and MINLAD / MAXLAD. Is what is a way to remember the difference between them.<\/p>\n
my script is robocopy d:\\users\\ e:\\ /e /mov maxlad:1095 because from what I read it looks like maxlad will move files MODIFIED where as maxage moves files by CREATION date.<\/p>\n
I would like to move files that move files that have a MODIFIED date 3 years and older. We have a lot of reference files that some people refer back to but don’t change and from what I read, there is an ACCESS flag that is reset when the file is just open. I think that flag is read by minage/maxage but not sure.<\/p>","upvoteCount":6,"datePublished":"2017-08-29T23:54:39.000Z","url":"https://community.spiceworks.com/t/how-do-i-use-robocopy-to-move-files-older-than-3-years/602860/1","author":{"@type":"Person","name":"tomgarcia2","url":"https://community.spiceworks.com/u/tomgarcia2"}},{"@type":"Answer","text":"
I would like to help out but I do not know where your main concern lies with…<\/p>\n
\n
\n
Would you need help with the command line, but it looks like you got it…<\/p>\n<\/li>\n
\n
Would you like to know when to use “last accessed”, “last modified” and/or created date ?<\/p>\n<\/li>\n<\/ol>\n
\n
\n
created date : date file was created<\/p>\n<\/li>\n
\n
last modified : date file was last saved (we may assume that there were changes made)<\/p>\n<\/li>\n
\n
last access : date file last read, but do note that some software like AV or backup may also be flagged as last access.<\/p>\n<\/li>\n<\/ul>","upvoteCount":0,"datePublished":"2017-08-30T01:58:45.000Z","url":"https://community.spiceworks.com/t/how-do-i-use-robocopy-to-move-files-older-than-3-years/602860/2","author":{"@type":"Person","name":"adrian_ych","url":"https://community.spiceworks.com/u/adrian_ych"}},{"@type":"Answer","text":"
Sorry, man. I’ll clarify.<\/p>\n
I keep seeing posts that show how to move files older than… but it doesn’t specify if it is moving the files based on the last modified date or the creation date or the last accessed date.<\/p>\n
So to summarize,<\/p>\n
MAXAGE / MINAGE uses the MODIFIED DATE in Windows Explorer<\/p>\n
MAXAGE EXCLUDES the files based on the time specified<\/p>\n
MINAGE will GRAB the files based on the time specified.<\/p>\n
MAXLAD / MINLAD uses the ACCESS DATE (which isn’t visible in Windows Explorer)<\/p>\n
MAXLAD will EXCLUDE the files based on the time specified<\/p>\n
MINLAD will GRAB the files based on the time specified<\/p>\n
Does this sound right? This is what I love about Spiceworks Community. Its like having another IT person to bounce thoughts and ideas off of to make sure I’m on the right track. I’m in a one person deep shop and handle most things on my own, but rely on thoughts of the community for help, so thanks for stepping in.<\/p>\n
Thanks Limey. I saw your post after. If you can add any thoughts, that’d be great.<\/p>\n