Solved

Robocopy Maxage limitations

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Life is full of imperfections – we all know it. Sometimes bad things happen to people for no particular reason. As they say: “it happens”. All we can do is to find a way to make some unavoidable situations… avoidable. Every kind of hardware has i…
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.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

732 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