Solved

Robocopy Maxage limitations

Posted on 2014-10-29
4
1,970 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

Suggested Solutions

Title # Comments Views Activity
Netapp and Vcenter report 9 81
backup program 6 47
Solaris SUN OS 4.1.3 machine clone 2 56
Windows Server Backup for Exchange incremental 15 57
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now