Solved

Robocopy Maxage limitations

Posted on 2014-10-29
4
1,729 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
THANK YOU VERY MUCH.  This helped a lot.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Problem We are doing a daily copy of data in file system in Linux manually and I want to automate the same . We need many features in this automation:    1. We want to be able to exit in case of errors    2. We want the copy to happen via …
Replication has always been one of those technologies that people run scared from. The main reason is usually cost. When you think of replication, your mind drifts to solutions that replicate from one disk frame to another using block level technolo…
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…
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…

744 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

8 Experts available now in Live!

Get 1:1 Help Now