Solved

Robocopy Maxage limitations

Posted on 2014-10-29
4
3,053 Views
Last Modified: 2014-10-29
I have files that I am using Robocopy to backup to another machine.    They go back to 2008.

I can put in maxage 1899 and the batch file  will run.   But if I try to use anything over 1900, it won't run.    Are there limitations to the values you can use on maxage and minage
0
Comment
Question by:bankwest
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:SerjTech
ID: 40411918
Take a look at the syntax for Robocopy:

 /MAXAGE:n :: MAXimum file AGE - exclude files older than n days/date.
  /MINAGE:n :: MINimum file AGE - exclude files newer than n days/date.
  /MAXLAD:n :: MAXimum Last Access Date - exclude files unused since n.
  /MINLAD:n :: MINimum Last Access Date - exclude files used since n.
               (If n < 1900 then n = n days, else n = YYYYMMDD date).

So basically anything over than 1899 you have to use the date format YYYYMMDD

Hope this helps
0
 

Author Comment

by:bankwest
ID: 40411975
Ok, can you help me with this some more.      New to all this.

Here is what I have

robocopy "\\Riley2\Shares" "\\gld2112\fbak\riley2" /S /E /V /NP /MAXAGE:1899 /LOG:"E:\scripts\log_rcopy_riley-to-2112-%date:~10,4%_%date:~4,2%_%date:~7,2%.txt" /R:10 /W:30

How exactly should it look?

THANKS
0
 
LVL 5

Accepted Solution

by:
SerjTech earned 500 total points
ID: 40412011
I can help but what do you want to achieve from it?

From your example.
You use both /S and /E.
/S copies all subfolders excluding empty folders while /E copies all subfolders including empty ones. So you need to pick which you want to do.

Your /MAXAGE:1899 would exclude files older than 1899 days. If you want to copy ALL files no matter the age just leave it out.

I can't help much more as not sure what you hoping to achieve but I would recommend visiting following site to learn up on the different switches / options that can be used
http://technet.microsoft.com/en-us/library/cc733145.aspx
0
 

Author Closing Comment

by:bankwest
ID: 40412033
THANK YOU VERY MUCH.  This helped a lot.
0

Featured Post

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft will be releasing the Windows 10 Creators Update in just a matter of weeks. Are you prepared? Follow these steps to ensure everything goes smoothly and you don't lose valuable data on your PC.
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question