win-auodeployment_script
win-auodeployment_script
$websiteName = "abc.example.info"
$rootFolder = "D:\root-folder-of-website"
$backupFolderBase = "D:\Backups\abc.example.com"
$date = Get-Date -Format "dd-MM-yyyy"
$retryCount = 1
# Replace the files in the root folder with the unzipped contents
Remove-Item -Path "$rootFolder\*" -Recurse -Force
Copy-Item -Path "$tempExtractFolder\build\*" -Destination $rootFolder -Recurse -
Force
Write-Host "Replaced files in $rootFolder with contents of the build"