Is there a way to xcopy just changed or new files?
Problem
I am trying to deploy a website from my desktop to my webserver and so right now I am doing this: My desktop is a Windows XP machine, and I need to copy to a Windows Server 2008 machine, but this copies everything and the whole site is very large and it takes a really long time to finish copying. Is there a way to specifically just copy new or updated files? I see you can pass in a changed-since date, but I wanted to see if there is a simpler way to compare against the destination file... Also, I am open to using anything outside of xcopy that can do the job as well...
Error Output
xcopy C:\source X:\destination /s
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Is there a way to xcopy just changed or new files?
From the XCOPY documentation: /d[:mm-dd-yyyy] : Copies source files changed on or after the specified date only. If you do not include a mm-dd-yyyy value, xcopy copies all Source files that are newer than existing Destination files. This command-line option allows you to update files that have changed. So, with your example, it should read:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix