Is this script missing a lot of files or something as it seems that there are plenty of files older than the 400 days that are being left on the server.<\/p>\n
SET source=“F:\\Shared Data\\Company Shared Folders”
\nSET destination=“d:\\company shared folder archive”<\/p>\n
Robocopy.exe %source% %destination% /S /COPY:DATSOU /XN /XX /MINLAD:400 /MOVE /NP /xd Dean Deanr<\/p>\n
pause<\/p>\n
REM use /MINLAD for minimum last access date
\nREM use /MINAGE for minimum last modified date<\/p>","upvoteCount":2,"answerCount":3,"datePublished":"2012-01-24T07:50:11.000Z","author":{"@type":"Person","name":"richardkavanagh7277","url":"https://community.spiceworks.com/u/richardkavanagh7277"},"acceptedAnswer":{"@type":"Answer","text":"
I’ve never used /XX but I’m guessing using /XX along with /MINLAD is causing nothing to be copied.<\/p>\n
/XX would keep files that don’t exist on the destination from being copied over if I’m reading it right.<\/p>\n
I’d try Robocopy.exe %source% %destination% /L /S /COPY:DATSOU /XN /MINLAD:400 /MOVE /NP /xd Dean Deanr>%temp%\\copy.log<\/p>\n
and look at %temp%\\copy.log to see what it will do.<\/p>\n
Also, I’ve had to use /FFT if the source is a ReadyNAS unit so I’m not sure what your source is but if it’s a non-windows server, you might try adding that<\/p>","upvoteCount":1,"datePublished":"2012-01-24T08:01:53.000Z","url":"https://community.spiceworks.com/t/robocopy-script-is-it-missing-files/122652/2","author":{"@type":"Person","name":"ujstech","url":"https://community.spiceworks.com/u/ujstech"}},"suggestedAnswer":[{"@type":"Answer","text":"
Is this script missing a lot of files or something as it seems that there are plenty of files older than the 400 days that are being left on the server.<\/p>\n
SET source=“F:\\Shared Data\\Company Shared Folders”
\nSET destination=“d:\\company shared folder archive”<\/p>\n
Robocopy.exe %source% %destination% /S /COPY:DATSOU /XN /XX /MINLAD:400 /MOVE /NP /xd Dean Deanr<\/p>\n
pause<\/p>\n
REM use /MINLAD for minimum last access date
\nREM use /MINAGE for minimum last modified date<\/p>","upvoteCount":2,"datePublished":"2012-01-24T07:50:11.000Z","url":"https://community.spiceworks.com/t/robocopy-script-is-it-missing-files/122652/1","author":{"@type":"Person","name":"richardkavanagh7277","url":"https://community.spiceworks.com/u/richardkavanagh7277"}},{"@type":"Answer","text":"
Ok I changed to MINAGE and that’s certainly caused some more files to be moved. Will do a test run changing /XX and see what that moves.<\/p>\n
Thanks!<\/p>","upvoteCount":0,"datePublished":"2012-01-24T08:20:13.000Z","url":"https://community.spiceworks.com/t/robocopy-script-is-it-missing-files/122652/3","author":{"@type":"Person","name":"richardkavanagh7277","url":"https://community.spiceworks.com/u/richardkavanagh7277"}}]}}