I'd like to copy only files that have changed since a particular date, on Windows, what
Jump to turn (16)
- 1I'd like to copy only files that have changed since a particular date, on Window
- 2my source will be \\lightspeed\data and the destination will be d:\serverfolders
- 3so the users started with the new data yesterday morning which was Jan 30, 2023.
- 4so that is after and including the 30th?
- 5now, can I make that run every day at 7:00 PM?
- 6I'd like to run this every day, but it seems as time goes on it'd be copying (an
- 7So here's the deal... recently switched all of the data from a Windows Server to
- 8wouldn't the '/mir' switch make it copy all 1TB of data?
- 9I have a folder on the lighspeed NAS called "Installers and Drivers" under data,
- 10isn't it doing to interpret that wrong since there's a space in the path?
- 11ERROR : Invalid Parameter #3 : "/MAXAGE:2023-01-30"
- 12ERROR : Invalid Parameter #3 : "/MAXAGE:01-30-2023"
- 13could you explain the /dcopy:t switch some more?
- 14this does what I want but doesn't pick up things in subdirectories, I need to pi
- 15and I'm actually going up one level and not picking 'Installers and Drivers' but
- 16the robocopy script is working well and has been running a long time, but now it
- User
I'd like to copy only files that have changed since a particular date, on Windows, what
- Assistant
is the best way to do this?
The best way to copy only files that have changed since a particular date on Windows is to use the built-in command line tool
robocopy. You can use the/MAXAGEoption to specify the date and only copy files that have been modified after that date. Here's an example of how you could userobocopyto copy only changed files from one directory to another:rubyrobocopy source_directory destination_directory /MAXAGE:YYYY-MM-DDReplace
source_directoryanddestination_directorywith the actual paths of the source and destination directories, andYYYY-MM-DDwith the date you want to use as the cutoff. - User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.