I am using Powershell and am trying to forcefully copy folder/files without erasing any extra files in existing destination folders. I am stuck trying to get a working command.
Below is my code, any suggestions on how to fix this?
Copy-Item -Force -Recurse –Verbose $releaseDirectory -Destination $sitePath
you need to be sure that
is something like
Copy-itemnever delete extra files or folders in destination, but with-forceit will owerwrite if file already exists