Solved

Robocopy Maxage limitations

Posted on 2014-10-29
4
2,365 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
  • 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

830 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