Jump to content

Recommended Posts

Posted (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 by nicholab
Posted

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..?

Posted
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?

Posted (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 by cscc
Posted

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.

Posted
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"

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...