Robocopy files based on date modified

By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.

I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUTI also want to only copy source files that have been changed after a certain date.

I know I can use xcopy to do either one of these things, but I would like to do both at the same time. So ideally I would like to do something like this:.

Check here for more information on Robocopy's options. In case someone wants to do the same without command line, the SyncToy tool does the job pretty well.

Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How to copy only new files AND only those that are modified after a certain date?

Ask Question. Asked 7 years, 1 month ago. Active 2 years, 11 months ago. Viewed k times. Der Hochstapler PaulStock PaulStock 1 1 gold badge 3 3 silver badges 10 10 bronze badges. Active Oldest Votes. Rabbid10 Rabbid10 3 3 silver badges 4 4 bronze badges.What's new New posts New resources Latest activity. Resources Latest reviews Search resources.

Log in Register. Search titles only.

Subscribe to RSS

Search Advanced search…. New posts. Search forums. Forum Rules.

Script to compare & move files based on modified date

Log in. Register Now! Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store. JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding. Robocopy Modified Date Problem. Thread starter HermanMunster Start date Mar 2, Joined Mar 16, Messages 6. Hi, Since I updated to Is there anything I can do about this issue? Thanks Herman. Joined Dec 14, Messages 1.

The Backup to "! The Backup to! Joined Feb 29, Messages 7. I've had similar problems, but I assumed it was because I'm migrating the backups from a different system to FreeNAS and hadn't updated the times yet.

I'm hoping I've covered it now everything is back in sync. This might set the correct times, so that you can go back to normal afterwards.Need support for your remote team?

robocopy files based on date modified

Check out our new promo! Select all Open in new window. IT issues often require a personalized solution. Why EE? Get Access. Log In. Web Dev. NET App Servers. We help IT Professionals succeed at work. Techneut asked.

Medium Priority. Last Modified: So we copied all data to an external Hard drive for users to access until we could get the server back.

Once we did, we asked everyone to copy the files they worked on to the original location. That did not work, now both locations are being used and we are in a very messy situation.

Any ideas appreciated. Start Free Trial. View Solution Only. Experts with Gold status have received one of our highest-level Expert Awards, which recognize experts for their valuable contributions. Most Valuable Expert This award recognizes tech experts who passionately share their knowledge with the community and go the extra mile with helpful contributions.

Commented: Use robocopy. Author Commented: I tried that, and I think I might have not told the whole story in my description. The structure is identical, but the beginning name of the folder is not the same. Or I am misreading the error when trying. No, the folder names of the source and target folders do not have to be the same; only what's below it. Specify the folders exactly as in my example: put double quotes around the paths, and do not use trailing backslashes.

The trailing backslash is what error ed out. Trying to test the script and it will not copy and replace the file in the target location? This is what I am running: robocopy. To actually copy something, you need to remove it. Is the file in a subfolder under "test"? Check how it classifies your test file; for the file to be copied, it needs to be classifed "Newer": robocopy. Sorry, I was not able to test this but will get back to the grind today.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up. After using robocopy to copy files to a new drive I realized that all the file and directory creation times and been reset to the time of copying.

There is also another and I believe deprecated? I use this at work. This will copy timestamps for folders and files. Sign up to join this community.

The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. What switches can robocopy use to preserve file and directory times on the target?

Ask Question. Asked 8 years, 9 months ago. Active 7 months ago. Viewed k times. Are there some switches to make robocopy keep the original files times? Active Oldest Votes. Kev Kev 7, 12 12 gold badges 70 70 silver badges bronze badges. How do you see your Robo version?

Is there a cmd way to do it? Pacerier one of these methods might help: stackoverflow. RalfFriedl 2, 4 4 gold badges 9 9 silver badges 15 15 bronze badges.

Robocopy Modified Date Problem

John C John C 1. Sign up or log in Sign up using Google.I've seen a few posts related to this topic, but want to clarify a couple of things about Robocopy first.

I have a public internal share where I'd like to move files from to an archive folder while keeping the same folder structure in the destination. Is what is a way to remember the difference between them. We have a lot of reference files that some people refer back to but don't change and from what I read, there is an ACCESS flag that is reset when the file is just open. I hope this helps file server created in I only want to keep 10 days of files on my server.

Finally I got it fixed. Problem was I had too many files in a folder library aroundso I distributed them between folders and robocopy worked perfectly well! I keep seeing posts that show how to move files older than Does this sound right?

This is what I love about Spiceworks Community. Its like having another IT person to bounce thoughts and ideas off of to make sure I'm on the right track. I'm in a one person deep shop and handle most things on my own, but rely on thoughts of the community for help, so thanks for stepping in.

Subscribe to RSS

The last access date should be updated when a file is modified. Last Modified Date will be updated then too. So you cannot completely depend on the settings being accurate. Just move the file and tell your users what is happening. So they know to contact you to move back any reference file that got moved. As you are preserving the file structure if should be easy enough to find the missing files.

Second, I wouldn't automatically move files older than X off to an archive location. I'm not saying it's wrong, just not what I'd do here What happens when you have to go look for a file and don't find it?

You run the risk of this, having the files in a folder split between two locations based off some arbitrary attribute like date. We DO have an archive, but it's all manual movement. The one dept that uses it the most, the supervisor controls what of theirs moves, and when.

He moves projects that are complete and reference, and moves the complete folder structure. If you're looking for "Project X" then it's in the Archive. If the go to a folder on the live share and can't find it, they know where it is in archive and can move it back over if they need it. If they don't touch it for another 3 years, then it goes back over to the read-only archive.

This could be a separate post, but one user asked if I could generate an email that sends the log of files moved to all users or a DL Group when it's done.

I thought that was brilliant and saw some cool ways to do it in powershell using a generic google account. There are many uses of the minage and minlad as I have used it previously to sort out my file server s. I did the painful method of running robocopy annually 1st Jan to 31st Dec from to as to sort files annually That's pretty cool.

If so, that's some pretty innovative stuff. I'm going to put the script in a scheduled task on the server so the thing will run from now till eternity, long after Wall-E leaves the planet The last line in a couple of my Robocopy batch files is something like this:.

This does assume that you're setting variables for logpath and filename in your batch file, but if you've read some of my Robocopy posts then you've likely seen that. If not, see template attached.We often spend a lot of our precious time in copying the same set of files every day or every few days to take backups.

It would be very convenient if we could copy only those files that have been newly added or recently modified after a particular day or date. This is a tedious task if done manually. Therefore let us look at how this is possible using Robocopy and an alternative software Copywhizwhich does the same thing in a much user friendly manner.

Here is how Copywhiz makes file copying a breeze:. However, these commands are quite confusing and difficult to understand. It is, therefore, advisable to use Copywhiz, which is faster and more straightforward. The advanced settings dialogue box will open. Thus, Copywhiz proves to save a lot of time and effort and thereby increase productivity.

robocopy files based on date modified

The most significant advantage of using Copywhiz is that you can take automatic backups of your files and folders! Read more about it here:. For more tutorial videos, click here. Subscribe to our YouTube channel for regular updates and interesting videos! Check out our other cool products. Your email address will not be published. Save my name, email, and website in this browser for the next time I comment. Skip to content.

What is Copywhiz? Using Copywhiz: Watch a short video that perfectly depicts this feature: Video Transcription 1. Select the date option, as shown in the picture below.Log In.

If n is less thanthen n is expressed in days. Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. The Tek-Tips staff will check this out and take appropriate action. Click Here to join Tek-Tips and talk with other members! Already a Member? Join your peers on the Internet's largest technical computer professional community.

It's easy to join and it's free. Register now while it's still free! Already a member? Close this window and log in. Join Tek-Tips Forums! Join Us!

By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here. I have bumped into a following problem: If a file was Modified say on the 1st of October, but copied to a directory that is being backed up on the 10th of October, Robocopy with MAXAGE would skip the file, but I need it to be copied!

In other words, how can I specify Date Created rather than Date Modified to filter my backup robocopy job? Please, it drives me mad. You might find one that you are looking for. Close Box. Students Click Here Join Us! Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden. How to make robocopy maxage to check date Created not Date Modified?

robocopy files based on date modified

Replies to “Robocopy files based on date modified”

Leave a Reply

Your email address will not be published. Required fields are marked *