I am making a compressed copy of our wwwroot file via powershell and the Compress-Archive command. Is there a compelling reason to stop iis (or the website/apppool) before making a copy. I will be using this copy to update our test environment.
The documentation around the Compress-Archive doesn't make it clear what will happen if a file is locked. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/compress-archive?view=powershell-7.2