nicholab Posted June 13, 2019 Posted June 13, 2019 (edited) Hi I have an issue with Robocopy vs Treesize tells me there is 400GB of files over 6 years old when I run Robocpy as below it not finding nearly as many GB of data. Any suggestions? Robocopy.exe "E:\Dept-Resources" "\\NAS\Archive\6years_plus\Dept-Resources" *.* /S /E /COPY:DATSO /MOV /ZB /R:2 /W:10 /MAXLAD:20130611 /tee /LOG+:"C:\LOGS\6year.log" Edited June 13, 2019 by nicholab
Zammo Posted June 13, 2019 Posted June 13, 2019 Have you got de-dupe on? Treesize can be set to show either the "size on disk" or "allocated" size (or words to that affect) which might explain the discrepancy..?
bald_pig Posted June 13, 2019 Posted June 13, 2019 Have you got de-dupe on? Treesize can be set to show either the "size on disk" or "allocated" size (or words to that affect) which might explain the discrepancy..? That would have the opposite effect, robocopy would show a larger file size than treesize As for the script, /S would be redundant, as /E is also copying subfolders. I think the issue is /MOV as opposed to /MOVE /MOV : MOVe files (delete from source after copying). /MOVE : Move files and dirs (delete from source after copying). Have you checked to see if any subfolders are empty or not?
nicholab Posted June 13, 2019 Author Posted June 13, 2019 I just tried this and it does not seem to work it ignores /MAXLAD:20130611 this and copies the wrong files.
bald_pig Posted June 13, 2019 Posted June 13, 2019 You'll have to start looking at the log to see what is and isn't being copied then I'm afraid.
cscc Posted June 13, 2019 Posted June 13, 2019 (edited) What happens if you specify the number of days rather than a date; /MAXLAD:n : Exclude files unused since n days. e.g. .../R:2 /W:10 /MAXLAD:100 /tee..... Edited June 13, 2019 by cscc
nicholab Posted June 13, 2019 Author Posted June 13, 2019 Over some number of days you supposed to specified the date.
cscc Posted June 13, 2019 Posted June 13, 2019 According to the blurb; Depending upon its value, "n" can either represent days or a date. If "n" is less than 1900 then "n" is assumed to be a number of days, otherwise "n" is a date of this form: YYYYMMDD.
nicholab Posted June 13, 2019 Author Posted June 13, 2019 I tried both and the both drop out as there are no file that match the parameter that need need copying.
cscc Posted June 13, 2019 Posted June 13, 2019 Hi I have an issue with Robocopy vs Treesize tells me there is 400GB of files over 6 years old when I run Robocpy as below it not finding nearly as many GB of data. Any suggestions? Robocopy.exe "E:\Dept-Resources" "\\NAS\Archive\6years_plus\Dept-Resources" *.* /S /E /COPY:DATSO /MOV /ZB /R:2 /W:10 /MAXLAD:20130611 /tee /LOG+:"C:\LOGS\6year.log" Try removing the *.* entry; Robocopy.exe "E:\Dept-Resources" "\\NAS\Archive\6years_plus\Dept-Resources" /S /E /COPY:DATSO /MOV /ZB /R:2 /W:10 /MAXLAD:20130611 /tee /LOG+:"C:\LOGS\6year.log"
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now